diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2000-07-17 21:09:11 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2000-07-17 21:09:11 +0000 |
| commit | c789727701493bb9f0c51f82259bdd7525679d2b (patch) | |
| tree | cc2cdddf2bc2ff69d75283d3ed04a0652061e9c4 /lib/libfetch/http.c | |
| parent | 5cd33c40d768a40f55b897f3789ce3f509334193 (diff) | |
Notes
Diffstat (limited to 'lib/libfetch/http.c')
| -rw-r--r-- | lib/libfetch/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c index c9b2802b2e66..a384e04f2bc3 100644 --- a/lib/libfetch/http.c +++ b/lib/libfetch/http.c @@ -777,7 +777,6 @@ _http_request(struct url *URL, char *op, struct url_stat *us, char *flags) chunked = 0; need_auth = 0; offset = 0; - fd = -1; retry: /* connect to server or proxy */ if ((fd = _http_connect(url, &proxy, flags)) == -1) @@ -935,6 +934,7 @@ _http_request(struct url *URL, char *op, struct url_stat *us, char *flags) /* we have a redirect */ close(fd); + fd = -1; if (url != URL) fetchFreeURL(url); url = new; |
