summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2000-11-22 14:44:48 +0000
committerdes <des@FreeBSD.org>2000-11-22 14:44:48 +0000
commitc3ebcca666aed29fc5b2beb2970f447ff8777c52 (patch)
tree800b86b9c4ef2a2715b64bb16eca582d124325fc /lib
parentd2c58fba40aed01f738fa46576a1827211e1d614 (diff)
downloadFreeBSD-src-c3ebcca666aed29fc5b2beb2970f447ff8777c52.zip
FreeBSD-src-c3ebcca666aed29fc5b2beb2970f447ff8777c52.tar.gz
Revert previous commit, it was somewhat hasty.
Diffstat (limited to 'lib')
-rw-r--r--lib/libfetch/ftp.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c
index 768cc74..3e56342 100644
--- a/lib/libfetch/ftp.c
+++ b/lib/libfetch/ftp.c
@@ -140,13 +140,9 @@ _ftp_chkerr(int cd)
}
if (isftpinfo(last_reply)) {
while (!isftpreply(last_reply)) {
- switch (_fetch_getln(cd, &last_reply, &lr_size, &lr_length)) {
- case -1:
+ if (_fetch_getln(cd, &last_reply, &lr_size, &lr_length) == -1) {
_fetch_syserr();
return -1;
- case 0:
- _ftp_seterr(FTP_PROTOCOL_ERROR);
- return -1;
}
}
}
OpenPOWER on IntegriCloud