s4:rpc_server/epmapper: make use of dcerpc_binding_set_abstract_syntax() in build_ep_...
[samba.git] / 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);