summaryrefslogtreecommitdiffstats
path: root/usr.bin/fetch
diff options
context:
space:
mode:
authorfenner <fenner@FreeBSD.org>2002-11-07 22:16:45 +0000
committerfenner <fenner@FreeBSD.org>2002-11-07 22:16:45 +0000
commitabf784c214048373e84e20d4b641682b46562873 (patch)
tree85349db660f606f4bccebb80ffca38e54e403be1 /usr.bin/fetch
parentffeb4c27ffda8c4a5e26486120d8635eb62e1780 (diff)
downloadFreeBSD-src-abf784c214048373e84e20d4b641682b46562873.zip
FreeBSD-src-abf784c214048373e84e20d4b641682b46562873.tar.gz
Don't exit with success after timeout during authentication.
Diffstat (limited to 'usr.bin/fetch')
-rw-r--r--usr.bin/fetch/fetch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c
index 6d7b285..f863ef5 100644
--- a/usr.bin/fetch/fetch.c
+++ b/usr.bin/fetch/fetch.c
@@ -592,6 +592,10 @@ fetch(char *URL, const char *path)
goto failure;
}
+ /* timeout / interrupt before connection completley established? */
+ if (f == NULL)
+ goto failure;
+
if (!sigalrm) {
/* check the status of our files */
if (ferror(f))
OpenPOWER on IntegriCloud