Skip to content

Commit

Permalink
GSS: handle reuse fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
adamel authored and bagder committed Mar 12, 2011
1 parent 0718b7e commit 6f0ee71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/http.c
Expand Up @@ -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";
Expand Down

0 comments on commit 6f0ee71

Please sign in to comment.