From: Marcus Sundberg Date: Sat, 12 Mar 2011 23:21:07 +0000 (+0100) Subject: GSS: handle reuse fix X-Git-Tag: curl-7_21_5~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f0ee717c3752e06144e87b45bb56c24ce8237f7;p=thirdparty%2Fcurl.git 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 --- diff --git a/lib/http.c b/lib/http.c index 807bbeb845..419efc1674 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";