url.c: fix SIGSEGV

This commit is contained in:
Yang Tse 2013-07-11 13:29:48 +02:00
parent 5c6f12b9f2
commit b16b7f9d3a
1 changed files with 2 additions and 0 deletions

View File

@ -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;