mirror of
https://github.com/curl/curl.git
synced 2025-09-26 14:06:48 +03:00
url.c: fix SIGSEGV
This commit is contained in:
parent
5c6f12b9f2
commit
b16b7f9d3a
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user