From: Stefan Metzmacher Date: Tue, 4 Feb 2014 01:31:44 +0000 (+0100) Subject: s3:dcerpc_ep: make use of dcerpc_binding_set_abstract_syntax() X-Git-Tag: tdb-1.2.13~415 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=caeef257d24bbf1166e7a8b88af290c102f7d3e4;p=thirdparty%2Fsamba.git s3:dcerpc_ep: make use of dcerpc_binding_set_abstract_syntax() Signed-off-by: Stefan Metzmacher Reviewed-by: Guenther Deschner --- 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) {