summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-02-04 02:31:44 +0100
committerGünther Deschner <gd@samba.org>2014-02-13 11:54:16 +0100
commitcaeef257d24bbf1166e7a8b88af290c102f7d3e4 (patch)
tree6c3b6aaa3d08417799c071efef422904f453801f
parent52ccd28ca75bef4f7ac2489389a5aebf5db2b34a (diff)
downloadsamba-caeef257d24bbf1166e7a8b88af290c102f7d3e4.tar.gz
samba-caeef257d24bbf1166e7a8b88af290c102f7d3e4.tar.xz
samba-caeef257d24bbf1166e7a8b88af290c102f7d3e4.zip
s3:dcerpc_ep: make use of dcerpc_binding_set_abstract_syntax()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
-rw-r--r--source3/librpc/rpc/dcerpc_ep.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/source3/librpc/rpc/dcerpc_ep.c b/source3/librpc/rpc/dcerpc_ep.c
index e87dfb5e15..0502557a66 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) {