1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

Jrg pointed out that I did this fix wrongly, now authwant is cleared

properly if no auth is available
This commit is contained in:
Daniel Stenberg 2003-09-04 11:34:09 +00:00
parent 1f9b0e70ab
commit 2956fe97a0

View File

@ -162,6 +162,8 @@ void Curl_http_auth_act(struct connectdata *conn)
{
struct SessionHandle *data = conn->data;
data->state.authwant = CURLAUTH_NONE; /* clear it first */
if(data->state.authavail) {
if(data->state.authavail & CURLAUTH_GSSNEGOTIATE)
data->state.authwant = CURLAUTH_GSSNEGOTIATE;
@ -171,13 +173,11 @@ void Curl_http_auth_act(struct connectdata *conn)
data->state.authwant = CURLAUTH_NTLM;
else if(data->state.authavail & CURLAUTH_BASIC)
data->state.authwant = CURLAUTH_BASIC;
else
data->state.authwant = CURLAUTH_NONE; /* none */
if(data->state.authwant)
conn->newurl = strdup(data->change.url); /* clone URL */
}
data->state.authavail = CURLAUTH_NONE; /* clear it here */
}
}
/*