From 7b7baecf1ab2f783ae90b68884fb034d25e9f798 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 13 Mar 2011 14:19:12 +0100 Subject: [PATCH] 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 --- source3/librpc/rpc/dcerpc.h | 1 + source3/librpc/rpc/dcerpc_ep.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/librpc/rpc/dcerpc.h b/source3/librpc/rpc/dcerpc.h index 52f93abeca4..4f449c6a77d 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 8cfd3b86265..764dc17233a 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; -- 2.34.1