mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-11 18:17:54 +00:00
Merge pull request #3275 from git-up/http_fix
http: fixed leak when asking for credentials again
This commit is contained in:
commit
cb58fb24f5
@ -337,6 +337,10 @@ static int on_headers_complete(http_parser *parser)
|
|||||||
no_callback = 1;
|
no_callback = 1;
|
||||||
} else {
|
} else {
|
||||||
if (allowed_auth_types) {
|
if (allowed_auth_types) {
|
||||||
|
if (t->cred) {
|
||||||
|
t->cred->free(t->cred);
|
||||||
|
t->cred = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
error = t->owner->cred_acquire_cb(&t->cred,
|
error = t->owner->cred_acquire_cb(&t->cred,
|
||||||
t->owner->url,
|
t->owner->url,
|
||||||
|
Loading…
Reference in New Issue
Block a user