diff --git a/src/ChangeLog b/src/ChangeLog index 5b978ebb..d5040115 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,4 +1,9 @@ -2013-04-26 Tomas Hozza (tiny change) +2013-03-20 Tomas Hozza + + * http.c (gethttp): Set "sock" to -1 if it's not and we have no + persistent connection + +2013-04-26 Tomas Hozza * log.c (redirect_output): Use DEFAULT_LOGFILE in diagnostic message when `logfile' is NULL. diff --git a/src/http.c b/src/http.c index 669f0fe3..a6933551 100644 --- a/src/http.c +++ b/src/http.c @@ -1983,6 +1983,10 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy, exec_name, quote (relevant->host)); return HOSTERR; } + else if (sock != -1) + { + sock = -1; + } } if (sock < 0)