]> sjero.net Git - wget/blobdiff - src/http.c
Set sock variable to -1 if no persistent conn exists
[wget] / src / http.c
index 669f0fe3a80e5bc41d0ea97768b3e66385f5130e..a693355123f8b59ce7e20575954f326ce4896429 100644 (file)
@@ -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)