1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-07-02 02:15:28 +00:00

ftp_get_line: Don't update *@len if returning -1.

This commit is contained in:
Miciah Dashiel Butler Masters 2006-06-09 21:42:16 +00:00 committed by Miciah Dashiel Butler Masters
parent ea5b06c329
commit e1ea1cf2bb

View File

@ -1176,11 +1176,11 @@ ftp_get_line(struct cache_entry *cached, unsigned char *buf, int bufl,
return 1;
}
} else {
*len = bufl;
if (!last && bufl < FTP_BUF_SIZE) {
return -1;
}
*len = bufl;
return 0;
}
}