inside the auth 2 response bits, i wasn't storing the received client
authorLuke Leighton <lkcl@samba.org>
Thu, 16 Oct 1997 12:59:40 +0000 (12:59 +0000)
committerLuke Leighton <lkcl@samba.org>
Thu, 16 Oct 1997 12:59:40 +0000 (12:59 +0000)
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

index d221b8e644e12c95206954ba9912f16c7a5e5ce9..4d28e3bef0fb2936ec9ffbc2d8d7d98f60128456 100644 (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,