NTLM: Reset auth-done when using a fresh connection
With NTLM a new connection will always require authentication. Fixes #435
This commit is contained in:
parent
30c131f51f
commit
f65e07ca59
@ -5839,12 +5839,14 @@ static CURLcode create_conn(struct SessionHandle *data,
|
|||||||
data->state.authhost.done) {
|
data->state.authhost.done) {
|
||||||
infof(data, "NTLM picked AND auth done set, clear picked!\n");
|
infof(data, "NTLM picked AND auth done set, clear picked!\n");
|
||||||
data->state.authhost.picked = CURLAUTH_NONE;
|
data->state.authhost.picked = CURLAUTH_NONE;
|
||||||
|
data->state.authhost.done = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if((data->state.authproxy.picked & (CURLAUTH_NTLM | CURLAUTH_NTLM_WB)) &&
|
if((data->state.authproxy.picked & (CURLAUTH_NTLM | CURLAUTH_NTLM_WB)) &&
|
||||||
data->state.authproxy.done) {
|
data->state.authproxy.done) {
|
||||||
infof(data, "NTLM-proxy picked AND auth done set, clear picked!\n");
|
infof(data, "NTLM-proxy picked AND auth done set, clear picked!\n");
|
||||||
data->state.authproxy.picked = CURLAUTH_NONE;
|
data->state.authproxy.picked = CURLAUTH_NONE;
|
||||||
|
data->state.authproxy.done = FALSE;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user