aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2013-07-11 13:29:48 +0200
committerYang Tse <yangsita@gmail.com>2013-07-11 13:31:08 +0200
commitb16b7f9d3a139cc7665208e4d19e4f90287f1e8a (patch)
tree44d241f1c821933a98465a06c85b362e90e93b07
parent5c6f12b9f2fe1d32f4fac8d7c15c01b92ec3a8d3 (diff)
url.c: fix SIGSEGV
-rw-r--r--lib/url.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index 6ecf7b53b..a9760631d 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -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;