summaryrefslogtreecommitdiffstats
path: root/source4/librpc/rpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-02-06 18:51:45 +0100
committerGünther Deschner <gd@samba.org>2014-02-11 16:20:32 +0100
commit6e813ab89763892435e9a4c531950f71de814e6d (patch)
treeaaa08e84aa352218a08d59c0044f32acb3a61c24 /source4/librpc/rpc
parent9a084b4ab286d0ca73ce6ebb374e660da0820957 (diff)
downloadsamba-6e813ab89763892435e9a4c531950f71de814e6d.tar.gz
samba-6e813ab89763892435e9a4c531950f71de814e6d.tar.xz
samba-6e813ab89763892435e9a4c531950f71de814e6d.zip
s4:librpc/rpc: use dcerpc_binding_dup() in dcerpc_schannel_key_send()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r--source4/librpc/rpc/dcerpc_schannel.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/librpc/rpc/dcerpc_schannel.c b/source4/librpc/rpc/dcerpc_schannel.c
index c4bedfa9136..9ce36774da0 100644
--- a/source4/librpc/rpc/dcerpc_schannel.c
+++ b/source4/librpc/rpc/dcerpc_schannel.c
@@ -346,11 +346,9 @@ static struct composite_context *dcerpc_schannel_key_send(TALLOC_CTX *mem_ctx,
}
/* allocate binding structure */
- s->binding = talloc_zero(c, struct dcerpc_binding);
+ s->binding = dcerpc_binding_dup(s, s->pipe->binding);
if (composite_nomem(s->binding, c)) return c;
- *s->binding = *s->pipe->binding;
-
/* request the netlogon endpoint mapping */
epm_map_req = dcerpc_epm_map_binding_send(c, s->binding,
&ndr_table_netlogon,