1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

GSS: handle reuse fix

Make GSS authentication work when a curl handle is reused for multiple
authenticated requests, by always setting negdata->state in
output_auth_headers().

Signed-off-by: Marcus Sundberg <marcus.sundberg@aptilo.com>
This commit is contained in:
Marcus Sundberg 2011-03-13 00:21:07 +01:00 committed by Daniel Stenberg
parent 0718b7e31e
commit 6f0ee717c3

View File

@ -531,6 +531,7 @@ output_auth_headers(struct connectdata *conn,
#endif
#ifdef USE_HTTP_NEGOTIATE
negdata->state = GSS_AUTHNONE;
if((authstatus->picked == CURLAUTH_GSSNEGOTIATE) &&
negdata->context && !GSS_ERROR(negdata->status)) {
auth="GSS-Negotiate";