]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r2761: Print the decrypted, not encrypted key.
authorAndrew Bartlett <abartlet@samba.org>
Fri, 1 Oct 2004 03:14:57 +0000 (03:14 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:51 +0000 (10:52 -0500)
Andrew Bartlett

source/rpc_server/srv_netlog_nt.c

index 3e0762fa43b433254b5272b24f24687549e5a08f..a3157435f375dd863c51460b0ef95f183785e797 100644 (file)
@@ -486,8 +486,8 @@ NTSTATUS _net_srv_pwset(pipes_struct *p, NET_Q_SRV_PWSET *q_u, NET_R_SRV_PWSET *
        cred_hash3( pwd, q_u->pwd, p->dc.sess_key, 0);
 
        DEBUG(100,("Server password set : new given value was :\n"));
-       for(i = 0; i < 16; i++)
-               DEBUG(100,("%02X ", q_u->pwd[i]));
+       for(i = 0; i < sizeof(pwd); i++)
+               DEBUG(100,("%02X ", pwd[i]));
        DEBUG(100,("\n"));
 
        old_pw = pdb_get_nt_passwd(sampass);