1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

always set fd invalid after close

This commit is contained in:
Tim Rühsen 2014-10-29 16:46:11 +01:00
parent a6c2ba73d9
commit 42333c4a5e
2 changed files with 5 additions and 3 deletions

View File

@ -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 (CLOSE_FINISH): always set fd invalid after close
2014-10-29 Tim Ruehsen <tim.ruehsen@gmx.de> 2014-10-29 Tim Ruehsen <tim.ruehsen@gmx.de>
* openssl.c: print cert subject and issuer RFC2253 compliant * openssl.c: print cert subject and issuer RFC2253 compliant

View File

@ -1428,11 +1428,9 @@ persistent_available_p (const char *host, int port, bool ssl,
if (pconn_active && (fd) == pconn.socket) \ if (pconn_active && (fd) == pconn.socket) \
invalidate_persistent (); \ invalidate_persistent (); \
else \ else \
{ \
fd_close (fd); \ fd_close (fd); \
fd = -1; \ fd = -1; \
} \ } \
} \
} while (0) } while (0)
#define CLOSE_INVALIDATE(fd) do { \ #define CLOSE_INVALIDATE(fd) do { \