diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2001-04-07 15:26:31 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2001-04-07 15:26:31 +0000 |
| commit | 525be862e61b9cdcda070734bb4208e6dced891a (patch) | |
| tree | d488c08cd11e14f677de213a7d43b2de68aae742 /lib/libfetch | |
| parent | 7370c6a68a5a0494145847a8b656e04811a2b985 (diff) | |
Notes
Diffstat (limited to 'lib/libfetch')
| -rw-r--r-- | lib/libfetch/ftp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c index b866e78dc332..a2dfc93d1bb2 100644 --- a/lib/libfetch/ftp.c +++ b/lib/libfetch/ftp.c @@ -259,6 +259,7 @@ _ftp_stat(int cd, char *file, struct url_stat *us) us->size = us->size * 10 + *ln - '0'; if (*ln && !isspace(*ln)) { _ftp_seterr(FTP_PROTOCOL_ERROR); + us->size = -1; return -1; } if (us->size == 0) |
