mirror of
https://github.com/curl/curl.git
synced 2026-07-21 01:37:18 +03:00
url.c: fix SIGSEGV
This commit is contained in:
parent
5c6f12b9f2
commit
b16b7f9d3a
1 changed files with 2 additions and 0 deletions
|
|
@ -3858,6 +3858,8 @@ static CURLcode parseurlandfillconn(struct SessionHandle *data,
|
|||
else {
|
||||
/* sanitise paths and remove ../ and ./ sequences according to RFC3986 */
|
||||
char *newp = Curl_dedotdotify(path);
|
||||
if(!newp)
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
|
||||
if(strcmp(newp, path)) {
|
||||
rebuild_url = TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue