From a5c6ae8f28697733fd41bb3b35c4a0eaf11e59c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Wed, 29 Oct 2014 16:51:05 +0100 Subject: [PATCH] use CLOSE_INVALIDATE instead of fd_close --- src/ChangeLog | 4 ++++ src/http.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index c7efa700..91bb27c6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -3,6 +3,10 @@ * openssl.c (ssl_init) [! OPENSSL_NO_SSL3]: Add guard for OpenSSL without SSLv3. +2014-10-29 Tim Ruehsen + + * http.c (gethttp): use CLOSE_INVALIDATE instead of fd_close + 2014-10-29 Tim Ruehsen * http.c (CLOSE_FINISH): always set fd invalid after close diff --git a/src/http.c b/src/http.c index c0924713..591180da 100644 --- a/src/http.c +++ b/src/http.c @@ -2095,13 +2095,13 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy, { if (!ssl_connect_wget (sock, u->host)) { - fd_close (sock); + CLOSE_INVALIDATE (sock); request_free (req); return CONSSLERR; } else if (!ssl_check_certificate (sock, u->host)) { - fd_close (sock); + CLOSE_INVALIDATE (sock); request_free (req); return VERIFCERTERR; }