mirror of
https://github.com/curl/curl.git
synced 2026-08-24 18:33:34 +03:00
- Christian Krause reported and fixed a memory leak that would occur with HTTP
GSS/kerberos authentication (http://curl.haxx.se/bug/view.cgi?id=2284386)
This commit is contained in:
parent
797bc8504c
commit
4b3ae5e157
3 changed files with 8 additions and 0 deletions
|
|
@ -458,6 +458,10 @@ CURLcode Curl_http_auth_act(struct connectdata *conn)
|
|||
}
|
||||
|
||||
if(pickhost || pickproxy) {
|
||||
/* In case this is GSS auth, the newurl field is already allocated so
|
||||
we must make sure to free it before allocating a new one. As figured
|
||||
out in bug #2284386 */
|
||||
Curl_safefree(data->req.newurl);
|
||||
data->req.newurl = strdup(data->change.url); /* clone URL */
|
||||
if(!data->req.newurl)
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue