url.c: fix SIGSEGV
This commit is contained in:
@@ -3858,6 +3858,8 @@ static CURLcode parseurlandfillconn(struct SessionHandle *data,
|
|||||||
else {
|
else {
|
||||||
/* sanitise paths and remove ../ and ./ sequences according to RFC3986 */
|
/* sanitise paths and remove ../ and ./ sequences according to RFC3986 */
|
||||||
char *newp = Curl_dedotdotify(path);
|
char *newp = Curl_dedotdotify(path);
|
||||||
|
if(!newp)
|
||||||
|
return CURLE_OUT_OF_MEMORY;
|
||||||
|
|
||||||
if(strcmp(newp, path)) {
|
if(strcmp(newp, path)) {
|
||||||
rebuild_url = TRUE;
|
rebuild_url = TRUE;
|
||||||
|
Reference in New Issue
Block a user