mirror of
https://github.com/rkd77/elinks.git
synced 2024-10-02 03:46:21 -04: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;
|
||||
}
|
||||
} else {
|
||||
*len = bufl;
|
||||
if (!last && bufl < FTP_BUF_SIZE) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
*len = bufl;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user