summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-01-11 19:18:40 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:06:04 -0500
commit54b1c585bbe2e60e9251fcaaf4d95b68b31e2618 (patch)
treededa0b2ede52bf531a474ab6ce881955427140ed /source3/rpc_client
parent673c3564885fdb57e8f99d64401ee81152134e54 (diff)
downloadsamba-54b1c585bbe2e60e9251fcaaf4d95b68b31e2618.tar.gz
samba-54b1c585bbe2e60e9251fcaaf4d95b68b31e2618.tar.bz2
samba-54b1c585bbe2e60e9251fcaaf4d95b68b31e2618.zip
r12853: Fix segfault in "net rpc vampire|samdump" (Bugzilla #3390).
The session key, after beeing set, was zeroed later on by the prs_init in the CLI_DO_RPC macro. Guenther (This used to be commit eaaeaa767e86151886964dcdd9f3186f0b31ed53)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_netlogon.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/rpc_client/cli_netlogon.c b/source3/rpc_client/cli_netlogon.c
index e3cc97cdc6..b5addf3375 100644
--- a/source3/rpc_client/cli_netlogon.c
+++ b/source3/rpc_client/cli_netlogon.c
@@ -604,15 +604,12 @@ NTSTATUS rpccli_netlogon_sam_sync(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
creds_client_step(cli->dc, &clnt_creds);
- prs_set_session_key(&qbuf, (const char *)cli->dc->sess_key);
- prs_set_session_key(&rbuf, (const char *)cli->dc->sess_key);
-
init_net_q_sam_sync(&q, cli->dc->remote_machine, global_myname(),
&clnt_creds, &ret_creds, database_id, next_rid);
/* Marshall data and send request */
- CLI_DO_RPC(cli, mem_ctx, PI_NETLOGON, NET_SAM_SYNC,
+ CLI_DO_RPC_COPY_SESS_KEY(cli, mem_ctx, PI_NETLOGON, NET_SAM_SYNC,
q, r,
qbuf, rbuf,
net_io_q_sam_sync,