If a connection is closed down and it had some kind of NTLM involved, we
reset the authentication state to make it restart on the next connection. This of course because NTLM is connection-oriented, whilst all other authentication schemes are not.
This commit is contained in:
parent
fcacd38036
commit
951e2a6545
@ -1298,6 +1298,13 @@ CURLcode Curl_disconnect(struct connectdata *conn)
|
|||||||
conn->bits.rangestringalloc = FALSE;
|
conn->bits.rangestringalloc = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if((conn->ntlm.state != NTLMSTATE_NONE) ||
|
||||||
|
(conn->proxyntlm.state != NTLMSTATE_NONE))
|
||||||
|
/* Authentication data is a mix of connection-related and sessionhandle-
|
||||||
|
related stuff. NTLM is connection-related so when we close the shop
|
||||||
|
we shall forget. */
|
||||||
|
conn->data->state.authstage = 0;
|
||||||
|
|
||||||
if(-1 != conn->connectindex) {
|
if(-1 != conn->connectindex) {
|
||||||
/* unlink ourselves! */
|
/* unlink ourselves! */
|
||||||
infof(conn->data, "Closing connection #%d\n", conn->connectindex);
|
infof(conn->data, "Closing connection #%d\n", conn->connectindex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user