From: Andrew Bartlett Date: Fri, 1 Oct 2004 03:14:57 +0000 (+0000) Subject: r2761: Print the decrypted, not encrypted key. X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5738 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1833d0ab724d88411ebd79ac26f5642e7c8cfee3;p=thirdparty%2Fsamba.git r2761: Print the decrypted, not encrypted key. Andrew Bartlett --- diff --git a/source/rpc_server/srv_netlog_nt.c b/source/rpc_server/srv_netlog_nt.c index 3e0762fa43b..a3157435f37 100644 --- a/source/rpc_server/srv_netlog_nt.c +++ b/source/rpc_server/srv_netlog_nt.c @@ -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);