From 067d8fd44ce4ab3ccaab654591efd2742ef3a4c0 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 23 Feb 2007 13:42:00 +0000 Subject: r21520: fix the altercontext test... sorry I'm only fixing the bug I introduced here, not the rest of the mess in the pipe handling, as we don't fill in pipe->binding and pipe->conn->binding_str consistant... metze (This used to be commit cec74f352822a767770e9e00e87a94d0e37d80c9) --- source4/librpc/rpc/dcerpc_util.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/librpc/rpc') diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c index 12760b3ba0..c3e104e78b 100644 --- a/source4/librpc/rpc/dcerpc_util.c +++ b/source4/librpc/rpc/dcerpc_util.c @@ -1387,6 +1387,8 @@ NTSTATUS dcerpc_secondary_context(struct dcerpc_pipe *p, p2->transfer_syntax = ndr_transfer_syntax; + p2->binding = talloc_reference(p2, p->binding); + status = dcerpc_alter_context(p2, p2, &p2->syntax, &p2->transfer_syntax); if (!NT_STATUS_IS_OK(status)) { talloc_free(p2); -- cgit