From a817c80bf30e17258823abe03d24904107481c29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim Rühsen?= Date: Wed, 29 Oct 2014 16:46:11 +0100 Subject: [PATCH 2/4] always set fd invalid after close --- src/ChangeLog | 4 ++++ src/http.c | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 4bcf5c3..cbcd39c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,9 @@ 2014-10-29 Tim Ruehsen + * http.c (CLOSE_FINISH): always set fd invalid after close + +2014-10-29 Tim Ruehsen + * openssl.c: print cert subject and issuer RFC2253 compliant * openssl.c (ssl_check_certificate): removed memory leak diff --git a/src/http.c b/src/http.c index 5ac69d0..c092471 100644 --- a/src/http.c +++ b/src/http.c @@ -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) -- 2.1.1