From e1ea1cf2bbf8548401e8db1c25943159ad066b18 Mon Sep 17 00:00:00 2001 From: Miciah Dashiel Butler Masters Date: Fri, 9 Jun 2006 21:42:16 +0000 Subject: [PATCH] ftp_get_line: Don't update *@len if returning -1. --- src/protocol/ftp/ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol/ftp/ftp.c b/src/protocol/ftp/ftp.c index 4387fa04..7c219a82 100644 --- a/src/protocol/ftp/ftp.c +++ b/src/protocol/ftp/ftp.c @@ -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; } }