diff options
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)) |