From 9bae4cd3d967f43c32796d03b1c2ee8ae5119e00 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 1 Oct 2010 19:05:30 -0700 Subject: s4-rpc: added target_principal binding handle option this allows you to specify a target SPN for a connection Pair-Programmed-With: Andrew Bartlett --- librpc/rpc/binding.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'librpc/rpc/binding.c') diff --git a/librpc/rpc/binding.c b/librpc/rpc/binding.c index 42059c0586..1b716d0153 100644 --- a/librpc/rpc/binding.c +++ b/librpc/rpc/binding.c @@ -247,7 +247,7 @@ _PUBLIC_ NTSTATUS dcerpc_parse_binding(TALLOC_CTX *mem_ctx, const char *s, struc char *p; int i, j, comma_count; - b = talloc(mem_ctx, struct dcerpc_binding); + b = talloc_zero(mem_ctx, struct dcerpc_binding); if (!b) { return NT_STATUS_NO_MEMORY; } @@ -651,7 +651,7 @@ _PUBLIC_ NTSTATUS dcerpc_binding_from_tower(TALLOC_CTX *mem_ctx, NTSTATUS status; struct dcerpc_binding *binding; - binding = talloc(mem_ctx, struct dcerpc_binding); + binding = talloc_zero(mem_ctx, struct dcerpc_binding); NT_STATUS_HAVE_NO_MEMORY(binding); ZERO_STRUCT(binding->object); -- cgit