From 0a040789162471388a3cdb10ac4e5ba957a084e5 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Thu, 24 Jun 2010 10:10:29 +0200 Subject: [PATCH] ftp-wildcard: avoid tight loop when used without any pattern It was broken for URLs like "ftp://example.com/". --- lib/ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ftp.c b/lib/ftp.c index 3b13b52cc..ac47258bc 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; }