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:
parent
1182c8bdcd
commit
0a04078916
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user