diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2000-06-21 09:49:51 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2000-06-21 09:49:51 +0000 |
| commit | cf5af79cacf724c4840d4bc35f8024b72c683b99 (patch) | |
| tree | 4d0a6ba30a6350012dee923f101ae7524ec60ac9 /lib/libfetch/http.c | |
| parent | d4c3159a332c906da53b6539dc157c807c0c1756 (diff) | |
Notes
Diffstat (limited to 'lib/libfetch/http.c')
| -rw-r--r-- | lib/libfetch/http.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c index 888b7f731957..d28510d27024 100644 --- a/lib/libfetch/http.c +++ b/lib/libfetch/http.c @@ -522,7 +522,9 @@ fetchGetHTTP(struct url *URL, char *flags) if (e != (URL->offset ? HTTP_PARTIAL : HTTP_OK) && (e != HTTP_MOVED || noredirect)) { _http_seterr(e); - goto fouch; + free(c); + fclose(f); + return NULL; } /* browse through header */ @@ -633,7 +635,8 @@ fetchStatHTTP(struct url *URL, struct url_stat *us, char *flags) e = _http_request(f, "HEAD", URL, flags); if (e != HTTP_OK && (e != HTTP_MOVED || noredirect)) { _http_seterr(e); - goto ouch; + fclose(f); + return -1; } while (1) { |
