mirror of
https://github.com/rkd77/elinks.git
synced 2024-07-04 02:35:29 +00:00
ftp_get_line: Don't update *@len if returning -1.
This commit is contained in:
parent
ea5b06c329
commit
e1ea1cf2bb
|
@ -1176,11 +1176,11 @@ ftp_get_line(struct cache_entry *cached, unsigned char *buf, int bufl,
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
*len = bufl;
|
|
||||||
if (!last && bufl < FTP_BUF_SIZE) {
|
if (!last && bufl < FTP_BUF_SIZE) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*len = bufl;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user