summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@sernet.private>2010-03-17 14:00:45 +0100
committerStefan Metzmacher <metze@samba.org>2010-03-17 18:26:15 +0100
commit04221518dab1a36610752cd97ec560f285dc2090 (patch)
treeaf35f21c02973944ce541c67ec37f92fd4228985 /source4/librpc
parent4ca2cc348e3412fd1851cd8512a10d0d0b1acf99 (diff)
downloadsamba-04221518dab1a36610752cd97ec560f285dc2090.tar.gz
samba-04221518dab1a36610752cd97ec560f285dc2090.tar.bz2
samba-04221518dab1a36610752cd97ec560f285dc2090.zip
s4:librpc/rpc: initialize p->binding_handle in dcerpc_secondary_context()
metze
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/rpc/dcerpc_util.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c
index 768a3864a1..8fd17bd782 100644
--- a/source4/librpc/rpc/dcerpc_util.c
+++ b/source4/librpc/rpc/dcerpc_util.c
@@ -755,6 +755,13 @@ _PUBLIC_ NTSTATUS dcerpc_secondary_context(struct dcerpc_pipe *p,
p2->binding = talloc_reference(p2, p->binding);
+ p2->binding_handle = talloc(p2, struct dcerpc_binding_handle);
+ if (p2->binding_handle == NULL) {
+ talloc_free(p2);
+ return NT_STATUS_NO_MEMORY;
+ }
+ p2->binding_handle->private_data = p2;
+
status = dcerpc_alter_context(p2, p2, &p2->syntax, &p2->transfer_syntax);
if (!NT_STATUS_IS_OK(status)) {
talloc_free(p2);