http_negotiate: do not close connection until negotiation is completed

Fix HTTP POST using CURLAUTH_NEGOTIATE.

Closes #3275
This commit is contained in:
Elia Tufarolo 2018-11-13 18:30:56 +01:00 committed by Daniel Stenberg
parent 6d0e487f9f
commit 07ebaf8378
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 8 additions and 1 deletions

View file

@ -610,7 +610,6 @@ output_auth_headers(struct connectdata *conn,
result = Curl_output_negotiate(conn, proxy);
if(result)
return result;
authstatus->done = TRUE;
negdata->state = GSS_AUTHSENT;
}
else