summaryrefslogtreecommitdiff
path: root/source3/librpc/rpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-03-13 14:19:12 +0100
committerStefan Metzmacher <metze@samba.org>2011-03-13 16:52:59 +0100
commit7b7baecf1ab2f783ae90b68884fb034d25e9f798 (patch)
treed18a8c71ca5caa87408866c9cd23b15d40139d85 /source3/librpc/rpc
parent83c55ac67e488787a264f3981eabb6f69e7b0e87 (diff)
downloadsamba-7b7baecf1ab2f783ae90b68884fb034d25e9f798.tar.gz
samba-7b7baecf1ab2f783ae90b68884fb034d25e9f798.tar.bz2
samba-7b7baecf1ab2f783ae90b68884fb034d25e9f798.zip
s3:librpc/rpc: add target_principal to struct dcerpc_binding
This brings the source3 copy in sync with the source4 copy of struct dcerpc_binding. metze
Diffstat (limited to 'source3/librpc/rpc')
-rw-r--r--source3/librpc/rpc/dcerpc.h1
-rw-r--r--source3/librpc/rpc/dcerpc_ep.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/source3/librpc/rpc/dcerpc.h b/source3/librpc/rpc/dcerpc.h
index 52f93abeca..4f449c6a77 100644
--- a/source3/librpc/rpc/dcerpc.h
+++ b/source3/librpc/rpc/dcerpc.h
@@ -36,6 +36,7 @@ struct dcerpc_binding {
struct ndr_syntax_id object;
const char *host;
const char *target_hostname;
+ const char *target_principal;
const char *endpoint;
const char **options;
const char *localaddress;
diff --git a/source3/librpc/rpc/dcerpc_ep.c b/source3/librpc/rpc/dcerpc_ep.c
index 8cfd3b8626..764dc17233 100644
--- a/source3/librpc/rpc/dcerpc_ep.c
+++ b/source3/librpc/rpc/dcerpc_ep.c
@@ -51,7 +51,7 @@ NTSTATUS dcerpc_binding_vector_create(TALLOC_CTX *mem_ctx,
goto done;
}
- bvec->bindings = talloc_array(bvec, struct dcerpc_binding, ep_count);
+ bvec->bindings = talloc_zero_array(bvec, struct dcerpc_binding, ep_count);
if (bvec->bindings == NULL) {
status = NT_STATUS_NO_MEMORY;
goto done;