1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

ftp-wildcard: avoid tight loop when used without any pattern

It was broken for URLs like "ftp://example.com/".
This commit is contained in:
Pavel Raiskup 2010-06-24 10:10:29 +02:00 committed by Kamil Dudka
parent 1182c8bdcd
commit 0a04078916

View File

@ -3509,7 +3509,7 @@ static CURLcode init_wc_data(struct connectdata *conn)
path[0] = '\0'; path[0] = '\0';
} }
else { /* only list */ else { /* only list */
conn->data->set.wildcardmatch = FALSE; wildcard->state = CURLWC_CLEAN;
ret = ftp_parse_url_path(conn); ret = ftp_parse_url_path(conn);
return ret; return ret;
} }