mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
use CLOSE_INVALIDATE instead of fd_close
This commit is contained in:
parent
42333c4a5e
commit
a5c6ae8f28
@ -3,6 +3,10 @@
|
|||||||
* openssl.c (ssl_init) [! OPENSSL_NO_SSL3]: Add guard for OpenSSL
|
* openssl.c (ssl_init) [! OPENSSL_NO_SSL3]: Add guard for OpenSSL
|
||||||
without SSLv3.
|
without SSLv3.
|
||||||
|
|
||||||
|
2014-10-29 Tim Ruehsen <tim.ruehsen@gmx.de>
|
||||||
|
|
||||||
|
* http.c (gethttp): use CLOSE_INVALIDATE instead of fd_close
|
||||||
|
|
||||||
2014-10-29 Tim Ruehsen <tim.ruehsen@gmx.de>
|
2014-10-29 Tim Ruehsen <tim.ruehsen@gmx.de>
|
||||||
|
|
||||||
* http.c (CLOSE_FINISH): always set fd invalid after close
|
* http.c (CLOSE_FINISH): always set fd invalid after close
|
||||||
|
@ -2095,13 +2095,13 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy,
|
|||||||
{
|
{
|
||||||
if (!ssl_connect_wget (sock, u->host))
|
if (!ssl_connect_wget (sock, u->host))
|
||||||
{
|
{
|
||||||
fd_close (sock);
|
CLOSE_INVALIDATE (sock);
|
||||||
request_free (req);
|
request_free (req);
|
||||||
return CONSSLERR;
|
return CONSSLERR;
|
||||||
}
|
}
|
||||||
else if (!ssl_check_certificate (sock, u->host))
|
else if (!ssl_check_certificate (sock, u->host))
|
||||||
{
|
{
|
||||||
fd_close (sock);
|
CLOSE_INVALIDATE (sock);
|
||||||
request_free (req);
|
request_free (req);
|
||||||
return VERIFCERTERR;
|
return VERIFCERTERR;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user