From 0d7bdcb6a1e60ed04412908bf6b11004ce748d63 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Thu, 16 Oct 1997 12:59:40 +0000 Subject: 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) --- source3/pipenetlog.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source3/pipenetlog.c b/source3/pipenetlog.c index d221b8e644..4d28e3bef0 100644 --- a/source3/pipenetlog.c +++ b/source3/pipenetlog.c @@ -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, -- cgit