Skip to content

Commit

Permalink
url.c: fix SIGSEGV
Browse files Browse the repository at this point in the history
  • Loading branch information
yangtse committed Jul 11, 2013
1 parent 5c6f12b commit b16b7f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/url.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b16b7f9

Please sign in to comment.