summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-10-16 12:59:40 +0000
committerLuke Leighton <lkcl@samba.org>1997-10-16 12:59:40 +0000
commit0d7bdcb6a1e60ed04412908bf6b11004ce748d63 (patch)
tree96874e804ddb61e7080feb06bcc279e668441c57
parentae9b654a6b96c7c1c26cce6050ed0f0abec52017 (diff)
downloadsamba-0d7bdcb6a1e60ed04412908bf6b11004ce748d63.tar.gz
samba-0d7bdcb6a1e60ed04412908bf6b11004ce748d63.tar.bz2
samba-0d7bdcb6a1e60ed04412908bf6b11004ce748d63.zip
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)
-rw-r--r--source3/pipenetlog.c6
1 files 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,