summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/fetch.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2000-07-17 21:09:11 +0000
committerdes <des@FreeBSD.org>2000-07-17 21:09:11 +0000
commit9e42d615d8102289f59981b6332a387ed4c92781 (patch)
treeb7a07d8f231faccd144176986e527c8f5a092e5a /lib/libfetch/fetch.c
parent147a437a42224aa1f7bc1915d14ec6297becdbf0 (diff)
downloadFreeBSD-src-9e42d615d8102289f59981b6332a387ed4c92781.zip
FreeBSD-src-9e42d615d8102289f59981b6332a387ed4c92781.tar.gz
Don't forget to set file descriptor to -1 after closing it, since the code
outside the loop inspects it to determine whether or not we succeeded in retrieving the requested document. This fixes a bug where fetchGetHTTP() would return a FILE with an invalid file descriptor if it hit the redirect limit without locating the requested document.
Diffstat (limited to 'lib/libfetch/fetch.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud