diff options
author | fenner <fenner@FreeBSD.org> | 2002-11-07 22:16:45 +0000 |
---|---|---|
committer | fenner <fenner@FreeBSD.org> | 2002-11-07 22:16:45 +0000 |
commit | abf784c214048373e84e20d4b641682b46562873 (patch) | |
tree | 85349db660f606f4bccebb80ffca38e54e403be1 /usr.bin/fetch | |
parent | ffeb4c27ffda8c4a5e26486120d8635eb62e1780 (diff) | |
download | FreeBSD-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.c | 4 |
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)) |