Commit cb58fb24 by Edward Thomson

Merge pull request #3275 from git-up/http_fix

http: fixed leak when asking for credentials again
parents 3451c871 1630981e
......@@ -337,6 +337,10 @@ static int on_headers_complete(http_parser *parser)
no_callback = 1;
} else {
if (allowed_auth_types) {
if (t->cred) {
t->cred->free(t->cred);
t->cred = NULL;
}
error = t->owner->cred_acquire_cb(&t->cred,
t->owner->url,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment