s4:rpc_server/epmapper: make use of dcerpc_binding_set_abstract_syntax() in build_ep_...
authorStefan Metzmacher <metze@samba.org>
Tue, 4 Feb 2014 01:33:03 +0000 (02:33 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 13 Feb 2014 10:54:17 +0000 (11:54 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source4/rpc_server/epmapper/rpc_epmapper.c

index 58cdc0f9a2ee09bd0b77f5be06ea5273be8a5a49..62627ce30934ea38e5f9f7013ed9b8f2c0cb094e 100644 (file)
@@ -68,7 +68,11 @@ static uint32_t build_ep_list(TALLOC_CTX *mem_ctx,
                                return 0;
                        }
 
-                       description->object = iface->iface.syntax_id;
+                       status = dcerpc_binding_set_abstract_syntax(description,
+                                                       &iface->iface.syntax_id);
+                       if (!NT_STATUS_IS_OK(status)) {
+                               return 0;
+                       }
 
                        status = dcerpc_binding_build_tower(*eps, description, &(*eps)[total].ep);
                        TALLOC_FREE(description);