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:
parent
e6faf62e13
commit
4176985456
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user