summaryrefslogtreecommitdiff
path: root/lib/fileinfo.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-04-19 15:47:05 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-04-23 22:52:52 +0200
commitabbc8457d85aca74b7cfda1d394b0844932b2934 (patch)
tree46f2c7e16eefe4d557127b4769f4c9ffa16210ce /lib/fileinfo.c
parent98a768f0a6d23e6d3e209fc543d60e260dbcc46b (diff)
downloadgnurl-abbc8457d85aca74b7cfda1d394b0844932b2934.tar.gz
gnurl-abbc8457d85aca74b7cfda1d394b0844932b2934.tar.bz2
gnurl-abbc8457d85aca74b7cfda1d394b0844932b2934.zip
ftplistparser: keep state between invokes
Fixes FTP wildcard parsing when doing over a number of read buffers. Regression from f786d1f14 Reported-by: wncboy on github Fixes #2445 Closes #2519
Diffstat (limited to 'lib/fileinfo.c')
-rw-r--r--lib/fileinfo.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/fileinfo.c b/lib/fileinfo.c
index 387298847..4e72e1eba 100644
--- a/lib/fileinfo.c
+++ b/lib/fileinfo.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 2010 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 2010 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -33,14 +33,11 @@ struct fileinfo *Curl_fileinfo_alloc(void)
return calloc(1, sizeof(struct fileinfo));
}
-void Curl_fileinfo_dtor(void *user, void *element)
+void Curl_fileinfo_cleanup(struct fileinfo *finfo)
{
- struct fileinfo *finfo = element;
- (void) user;
if(!finfo)
return;
Curl_safefree(finfo->info.b_data);
-
free(finfo);
}