summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-08-25 18:47:15 +0200
committerGünther Deschner <gd@samba.org>2009-08-26 00:48:13 +0200
commite460c211b01f6642d9064e11432577fbb728cefb (patch)
tree760c0520ecc488206cd409d692bb3517ff5d6f24
parent5b46e5985e0f0edc199408c713a02dbe37faa381 (diff)
downloadsamba-e460c211b01f6642d9064e11432577fbb728cefb.tar.gz
samba-e460c211b01f6642d9064e11432577fbb728cefb.tar.bz2
samba-e460c211b01f6642d9064e11432577fbb728cefb.zip
s3-netlogon: get rid of init_net_r_req_chal().
Guenther
-rw-r--r--source3/rpc_server/srv_netlog_nt.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/source3/rpc_server/srv_netlog_nt.c b/source3/rpc_server/srv_netlog_nt.c
index 2488b15fb2..81a48012c0 100644
--- a/source3/rpc_server/srv_netlog_nt.c
+++ b/source3/rpc_server/srv_netlog_nt.c
@@ -32,18 +32,6 @@ extern userdom_struct current_user_info;
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_RPC_SRV
-/*************************************************************************
- init_net_r_req_chal:
- *************************************************************************/
-
-static void init_net_r_req_chal(struct netr_Credential *r,
- struct netr_Credential *srv_chal)
-{
- DEBUG(6,("init_net_r_req_chal: %d\n", __LINE__));
-
- memcpy(r->data, srv_chal->data, sizeof(r->data));
-}
-
/*******************************************************************
Inits a netr_NETLOGON_INFO_1 structure.
********************************************************************/
@@ -432,7 +420,7 @@ NTSTATUS _netr_ServerReqChallenge(pipes_struct *p,
generate_random_buffer(p->dc->srv_chal.data, 8);
/* set up the LSA REQUEST CHALLENGE response */
- init_net_r_req_chal(r->out.return_credentials, &p->dc->srv_chal);
+ *r->out.return_credentials = p->dc->srv_chal;
p->dc->challenge_sent = True;