Unverified Commit 2ab99c6d by Edward Thomson Committed by GitHub

Merge pull request #5576 from lollipopman/double-auth

httpclient: only free challenges for current_server type
parents 3a72345b bd346313
...@@ -1369,8 +1369,11 @@ int git_http_client_read_response( ...@@ -1369,8 +1369,11 @@ int git_http_client_read_response(
git_http_response_dispose(response); git_http_response_dispose(response);
git_vector_free_deep(&client->server.auth_challenges); if (client->current_server == PROXY) {
git_vector_free_deep(&client->proxy.auth_challenges); git_vector_free_deep(&client->proxy.auth_challenges);
} else if(client->current_server == SERVER) {
git_vector_free_deep(&client->server.auth_challenges);
}
client->state = READING_RESPONSE; client->state = READING_RESPONSE;
client->keepalive = 0; client->keepalive = 0;
......
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