url.c: fix SIGSEGV
This commit is contained in:
parent
5c6f12b9f2
commit
b16b7f9d3a
@ -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…
x
Reference in New Issue
Block a user