diff options
| author | Bill Fenner <fenner@FreeBSD.org> | 2002-11-07 22:16:45 +0000 |
|---|---|---|
| committer | Bill Fenner <fenner@FreeBSD.org> | 2002-11-07 22:16:45 +0000 |
| commit | 05f45e0c2c241786d402cba9fcf8f290e29b8ac4 (patch) | |
| tree | 85349db660f606f4bccebb80ffca38e54e403be1 | |
| parent | 01d33aef895410d6fb649cf5da914446d9ab30bd (diff) | |
Notes
| -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 6d7b28545c6e..f863ef539517 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)) |
