aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarcus Sundberg <marcus.sundberg@aptilo.com>2011-03-13 00:21:07 +0100
committerDaniel Stenberg <daniel@haxx.se>2011-03-13 00:21:07 +0100
commit6f0ee717c3752e06144e87b45bb56c24ce8237f7 (patch)
tree1d01f694a688f1f505db7d7c9c6979e659fc48da /lib
parent0718b7e31ecb429ce3de7a98e725750b518f489a (diff)
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 <marcus.sundberg@aptilo.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/http.c1
1 files changed, 1 insertions, 0 deletions
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";