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
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>
* openssl.c: print cert subject and issuer RFC2253 compliant

View File

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