diff options
author | Yang Tse <yangsita@gmail.com> | 2013-07-11 13:29:48 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2013-07-11 13:31:08 +0200 |
commit | b16b7f9d3a139cc7665208e4d19e4f90287f1e8a (patch) | |
tree | 44d241f1c821933a98465a06c85b362e90e93b07 | |
parent | 5c6f12b9f2fe1d32f4fac8d7c15c01b92ec3a8d3 (diff) |
url.c: fix SIGSEGV
-rw-r--r-- | lib/url.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |