Nikita Schmidt's fix to debian bug report #165382. This is verified with
the new test case 55.
This commit is contained in:
parent
219d88518c
commit
0fa512f26d
@ -1373,7 +1373,7 @@ CURLcode Curl_follow(struct SessionHandle *data,
|
|||||||
return CURLE_OUT_OF_MEMORY; /* go out from this */
|
return CURLE_OUT_OF_MEMORY; /* go out from this */
|
||||||
|
|
||||||
sprintf(newest, "%s%s%s", url_clone,
|
sprintf(newest, "%s%s%s", url_clone,
|
||||||
(('/' == useurl[0]) || !*protsep)?"":"/",
|
(('/' == useurl[0]) || (protsep && !*protsep))?"":"/",
|
||||||
useurl);
|
useurl);
|
||||||
free(newurl); /* newurl is the allocated pointer */
|
free(newurl); /* newurl is the allocated pointer */
|
||||||
free(url_clone);
|
free(url_clone);
|
||||||
|
Loading…
Reference in New Issue
Block a user