From: Daniel Stenberg Date: Thu, 19 Apr 2018 13:47:05 +0000 (+0200) Subject: ftplistparser: keep state between invokes X-Git-Tag: curl-7_60_0~84 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8fb78f9ddc6d858d630600059b8ad84a80892fd9;p=thirdparty%2Fcurl.git ftplistparser: keep state between invokes Regression from f786d1f14 Reported-by: wncboy on github Fixes #2445 Closes #2508 --- diff --git a/lib/ftplistparser.c b/lib/ftplistparser.c index 7668ea8c8c..b376c81036 100644 --- a/lib/ftplistparser.c +++ b/lib/ftplistparser.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2017, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2018, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -1003,6 +1003,7 @@ size_t Curl_ftp_parselist(char *buffer, size_t size, size_t nmemb, i++; } + return retsize; fail: