mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Fix double-free error: r289419 moved all error handling in http_connect()
to the end of the function, but did not remove a fetch_close() call which was made redundant by the one in the shared error-handling code. PR: 206774 Submitted by: Christian Heckendorf <heckendorfc@gmail.com> MFC after: 3 days
This commit is contained in:
parent
0de4f1bf64
commit
a982c4c7f5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=295536
|
@ -1435,7 +1435,6 @@ http_connect(struct url *URL, struct url *purl, const char *flags)
|
|||
}
|
||||
if (strcasecmp(URL->scheme, SCHEME_HTTPS) == 0 &&
|
||||
fetch_ssl(conn, URL, verbose) == -1) {
|
||||
fetch_close(conn);
|
||||
/* grrr */
|
||||
errno = EAUTH;
|
||||
fetch_syserr();
|
||||
|
|
Loading…
Reference in a new issue