From: Günther Deschner Date: Fri, 28 Nov 2008 23:10:18 +0000 (+0100) Subject: s3-libnetjoin: remove unused md4_trust_password, found by metze. X-Git-Url: http://git.samba.org/samba.git/?p=kai%2Fsamba.git;a=commitdiff_plain;h=42adfd1be2237bbe5430fe972143b548b42f6edb s3-libnetjoin: remove unused md4_trust_password, found by metze. Guenther --- diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c index 498c7af3f05..d9335b6a4ba 100644 --- a/source3/libnet/libnet_join.c +++ b/source3/libnet/libnet_join.c @@ -762,7 +762,6 @@ static NTSTATUS libnet_join_joindomain_rpc(TALLOC_CTX *mem_ctx, struct lsa_String lsa_acct_name; uint32_t user_rid; uint32_t acct_flags = ACB_WSTRUST; - uchar md4_trust_password[16]; struct samr_Ids user_rids; struct samr_Ids name_types; union samr_UserInfo user_info; @@ -898,10 +897,6 @@ static NTSTATUS libnet_join_joindomain_rpc(TALLOC_CTX *mem_ctx, goto done; } - /* Create a random machine account password and generate the hash */ - - E_md4hash(r->in.machine_password, md4_trust_password); - init_samr_CryptPasswordEx(r->in.machine_password, &cli->user_session_key, &crypt_pwd_ex);