mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 13:32:45 +00:00
MFH (r295536): fix double-free error when SSL connection fails
PR: 206774 Submitted by: Christian Heckendorf <heckendorfc@gmail.com> Approved by: re (glebius)
This commit is contained in:
parent
a7a1e9999d
commit
de9066ff28
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=295692
@ -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 New Issue
Block a user