From 6f0ee717c3752e06144e87b45bb56c24ce8237f7 Mon Sep 17 00:00:00 2001 From: Marcus Sundberg Date: Sun, 13 Mar 2011 00:21:07 +0100 Subject: 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 --- lib/http.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/http.c b/lib/http.c index 807bbeb84..419efc167 100644 --- a/lib/http.c +++ b/lib/http.c @@ -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"; -- cgit v1.2.3