aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Raiskup <pavel@raiskup.cz>2010-06-24 10:10:29 +0200
committerKamil Dudka <kdudka@redhat.com>2010-06-24 10:18:17 +0200
commit0a040789162471388a3cdb10ac4e5ba957a084e5 (patch)
treef58ff98e7b3fee63dbe0285a31248421f0a28d8c
parent1182c8bdcd2e8747c8ca5092b97ea2cf0607339e (diff)
ftp-wildcard: avoid tight loop when used without any pattern
It was broken for URLs like "ftp://example.com/".
-rw-r--r--lib/ftp.c2
1 files changed, 1 insertions, 1 deletions
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;
}