GSS: handle reuse fix
authorMarcus Sundberg <marcus.sundberg@aptilo.com>
Sat, 12 Mar 2011 23:21:07 +0000 (00:21 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 12 Mar 2011 23:21:07 +0000 (00:21 +0100)
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>
lib/http.c

index 807bbeb..419efc1 100644 (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";