From: Pavel Raiskup Date: Thu, 24 Jun 2010 08:10:29 +0000 (+0200) Subject: ftp-wildcard: avoid tight loop when used without any pattern X-Git-Tag: curl-7_21_1~115 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0a040789162471388a3cdb10ac4e5ba957a084e5;p=thirdparty%2Fcurl.git ftp-wildcard: avoid tight loop when used without any pattern It was broken for URLs like "ftp://example.com/". --- diff --git a/lib/ftp.c b/lib/ftp.c index 3b13b52ccc..ac47258bc0 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; }