Skip to content
Snippets Groups Projects
Commit b16b7f9d authored by Yang Tse's avatar Yang Tse
Browse files

url.c: fix SIGSEGV

parent 5c6f12b9
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment