Don't go haywire if the server closes the connection in the middle of a

multiline response (proper fix this time).
This commit is contained in:
des 2000-11-22 14:50:46 +00:00
parent e6faf62e13
commit 4176985456

View File

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