Commit b16b7f9d authored by Yang Tse's avatar Yang Tse
Browse files

url.c: fix SIGSEGV

parent 5c6f12b9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;