s3:dcerpc_ep: make use of dcerpc_binding_set_abstract_syntax()
authorStefan Metzmacher <metze@samba.org>
Tue, 4 Feb 2014 01:31:44 +0000 (02:31 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 13 Feb 2014 10:54:16 +0000 (11:54 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source3/librpc/rpc/dcerpc_ep.c

index e87dfb5e15d026759ee77cbd622a1e5d75da8a27..0502557a6621178fe4cf2e381cb278cd85d71d42 100644 (file)
@@ -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];
 
        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;
        }
 
        return NT_STATUS_OK;
@@ -435,7 +440,11 @@ static NTSTATUS ep_register(TALLOC_CTX *mem_ctx,
                        goto done;
                }
 
                        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) {
 
                map_tower = talloc_zero(entries, struct epm_twr_t);
                if (map_tower == NULL) {