From 04221518dab1a36610752cd97ec560f285dc2090 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 17 Mar 2010 14:00:45 +0100 Subject: s4:librpc/rpc: initialize p->binding_handle in dcerpc_secondary_context() metze --- source4/librpc/rpc/dcerpc_util.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source4/librpc/rpc') 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); -- cgit