mirror of
https://github.com/curl/curl.git
synced 2026-06-03 20:54:19 +03: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:
parent
1182c8bdcd
commit
0a04078916
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue