Revert previous commit, it was somewhat hasty.

This commit is contained in:
des 2000-11-22 14:44:48 +00:00
parent d2c58fba40
commit c3ebcca666

View File

@ -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;
}
}
}