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:
Dag-Erling Smørgrav 2000-11-22 14:50:46 +00:00
parent 04a80993c1
commit d41c0df8f8
1 changed files with 1 additions and 1 deletions

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;