cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH] FIX in wildcard FSM - remove infinite loop when FTP root directory is set without any pattern (CURLOPT_URL == "ftp://example.com/").

From: Pavel Raiskup <pavel_at_raiskup.cz>
Date: Mon, 21 Jun 2010 14:06:48 +0200

---
 lib/ftp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/ftp.c b/lib/ftp.c
index 3b13b52..ac47258 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -3509,7 +3509,7 @@ static CURLcode init_wc_data(struct connectdata *conn)
       path[0] = '\0';
     }
     else { /* only list */
-      conn->data->set.wildcardmatch = FALSE;
+      wildcard->state = CURLWC_CLEAN;
       ret = ftp_parse_url_path(conn);
       return ret;
     }
-- 
1.7.1
------------WWzsBnWLedpO4pHU6BpcKV
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
------------WWzsBnWLedpO4pHU6BpcKV--
Received on 2001-09-17