Skip to content

Commit f65e07c

Browse files
iboukrisbagder
authored andcommitted
NTLM: Reset auth-done when using a fresh connection
With NTLM a new connection will always require authentication. Fixes #435
1 parent 30c131f commit f65e07c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/url.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5839,12 +5839,14 @@ static CURLcode create_conn(struct SessionHandle *data,
58395839
data->state.authhost.done) {
58405840
infof(data, "NTLM picked AND auth done set, clear picked!\n");
58415841
data->state.authhost.picked = CURLAUTH_NONE;
5842+
data->state.authhost.done = FALSE;
58425843
}
58435844

58445845
if((data->state.authproxy.picked & (CURLAUTH_NTLM | CURLAUTH_NTLM_WB)) &&
58455846
data->state.authproxy.done) {
58465847
infof(data, "NTLM-proxy picked AND auth done set, clear picked!\n");
58475848
data->state.authproxy.picked = CURLAUTH_NONE;
5849+
data->state.authproxy.done = FALSE;
58485850
}
58495851
#endif
58505852
}

0 commit comments

Comments
 (0)