Skip to content
Snippets Groups Projects
Commit 0fa512f2 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Nikita Schmidt's fix to debian bug report #165382. This is verified with

the new test case 55.
parent 219d8851
No related branches found
No related tags found
No related merge requests found
......@@ -1373,7 +1373,7 @@ CURLcode Curl_follow(struct SessionHandle *data,
return CURLE_OUT_OF_MEMORY; /* go out from this */
sprintf(newest, "%s%s%s", url_clone,
(('/' == useurl[0]) || !*protsep)?"":"/",
(('/' == useurl[0]) || (protsep && !*protsep))?"":"/",
useurl);
free(newurl); /* newurl is the allocated pointer */
free(url_clone);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment