1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-29 02:50:28 +03:00

inside the auth 2 response bits, i wasn't storing the received client

credentials for the calculation of the next credentials: i was storing
the auth 2 calculated credentials.

oops.
(This used to be commit eb81fae874383f77ad72c0f7686b8c49e645b0b8)
This commit is contained in:
Luke Leighton 1997-10-16 12:59:40 +00:00
parent ae9b654a6b
commit 0d7bdcb6a1

View File

@ -374,9 +374,9 @@ static void api_lsa_auth_2( user_struct *vuser,
/* create server challenge for inclusion in the reply */
cred_create(vuser->dc.sess_key, &(vuser->dc.srv_cred), srv_time, &srv_cred);
/* update the client credentials for use next time */
memcpy(vuser->dc.clnt_cred.data, &(srv_cred.data), sizeof(srv_cred.data));
memcpy(vuser->dc.srv_cred .data, &(srv_cred.data), sizeof(srv_cred.data));
/* copy the received client credentials for use next time */
memcpy(vuser->dc.clnt_cred.data, &(q_a.clnt_chal.data), sizeof(q_a.clnt_chal.data));
memcpy(vuser->dc.srv_cred .data, &(q_a.clnt_chal.data), sizeof(q_a.clnt_chal.data));
/* construct reply. */
*rdata_len = lsa_reply_auth_2(&q_a, *rdata + 0x18, *rdata,