summaryrefslogtreecommitdiff
path: root/lib/libfetch/ftp.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2000-11-27 10:15:09 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2000-11-27 10:15:09 +0000
commit3a0d7af3d4f28ba241f600b39791c4cff23076a5 (patch)
treefd71f64217c8b0d9674003ffa3d67cc7fa06de0b /lib/libfetch/ftp.c
parentb0a1e74251f293b40e181461c37264369aa7bc2f (diff)
Notes
Diffstat (limited to 'lib/libfetch/ftp.c')
-rw-r--r--lib/libfetch/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c
index 3e563429c145..ab2c54d503d6 100644
--- a/lib/libfetch/ftp.c
+++ b/lib/libfetch/ftp.c
@@ -139,7 +139,7 @@ _ftp_chkerr(int cd)
return -1;
}
if (isftpinfo(last_reply)) {
- while (!isftpreply(last_reply)) {
+ while (lr_length && !isftpreply(last_reply)) {
if (_fetch_getln(cd, &last_reply, &lr_size, &lr_length) == -1) {
_fetch_syserr();
return -1;