summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-10-01 19:05:30 -0700
committerAndrew Tridgell <tridge@samba.org>2010-10-01 22:31:57 -0700
commit9bae4cd3d967f43c32796d03b1c2ee8ae5119e00 (patch)
tree71684b7e66a1d8436a603cbb9933ec33d010bfd8 /librpc
parentee15dc96926f505ba7f01ccfcfc2959b507f2b96 (diff)
downloadsamba-9bae4cd3d967f43c32796d03b1c2ee8ae5119e00.tar.gz
samba-9bae4cd3d967f43c32796d03b1c2ee8ae5119e00.tar.bz2
samba-9bae4cd3d967f43c32796d03b1c2ee8ae5119e00.zip
s4-rpc: added target_principal binding handle option
this allows you to specify a target SPN for a connection Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'librpc')
-rw-r--r--librpc/rpc/binding.c4
1 files changed, 2 insertions, 2 deletions
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);