From caeef257d24bbf1166e7a8b88af290c102f7d3e4 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 4 Feb 2014 02:31:44 +0100 Subject: [PATCH] s3:dcerpc_ep: make use of dcerpc_binding_set_abstract_syntax() Signed-off-by: Stefan Metzmacher Reviewed-by: Guenther Deschner --- source3/librpc/rpc/dcerpc_ep.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/source3/librpc/rpc/dcerpc_ep.c b/source3/librpc/rpc/dcerpc_ep.c index e87dfb5e15d..0502557a662 100644 --- a/source3/librpc/rpc/dcerpc_ep.c +++ b/source3/librpc/rpc/dcerpc_ep.c @@ -285,8 +285,13 @@ NTSTATUS dcerpc_binding_vector_replace_iface(const struct ndr_interface_table *i for (i = 0; i < v->count; i++) { struct dcerpc_binding *b = v->bindings[i]; + NTSTATUS status; - b->object = iface->syntax_id; + status = dcerpc_binding_set_abstract_syntax(b, + &iface->syntax_id); + if (!NT_STATUS_IS_OK(status)) { + return status; + } } return NT_STATUS_OK; @@ -435,7 +440,11 @@ static NTSTATUS ep_register(TALLOC_CTX *mem_ctx, goto done; } - map_binding->object = iface->syntax_id; + status = dcerpc_binding_set_abstract_syntax(map_binding, + &iface->syntax_id); + if (!NT_STATUS_IS_OK(status)) { + goto done; + } map_tower = talloc_zero(entries, struct epm_twr_t); if (map_tower == NULL) {