From abf784c214048373e84e20d4b641682b46562873 Mon Sep 17 00:00:00 2001 From: fenner Date: Thu, 7 Nov 2002 22:16:45 +0000 Subject: Don't exit with success after timeout during authentication. --- usr.bin/fetch/fetch.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'usr.bin/fetch') 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)) -- cgit v1.1