Commit 6f0ee717 authored by Marcus Sundberg's avatar Marcus Sundberg Committed by Daniel Stenberg
Browse files

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: default avatarMarcus Sundberg <marcus.sundberg@aptilo.com>
parent 0718b7e3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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";