librpc:core: Allocate struct dcesrv_interface with talloc
[samba.git] / source4 / rpc_server / epmapper / rpc_epmapper.c
index 793070d470e7df13696678aa5b10589f0ff25c9a..462553dfe6f5076889a6bec8e92f46f6d1dff213 100644 (file)
@@ -69,7 +69,7 @@ static uint32_t build_ep_list(TALLOC_CTX *mem_ctx,
                        if (!*eps) {
                                return 0;
                        }
-                       (*eps)[total].name = iface->iface.name;
+                       (*eps)[total].name = iface->iface->name;
 
                        description = dcerpc_binding_dup(*eps, d->ep_description);
                        if (description == NULL) {
@@ -77,7 +77,7 @@ static uint32_t build_ep_list(TALLOC_CTX *mem_ctx,
                        }
 
                        status = dcerpc_binding_set_abstract_syntax(description,
-                                                       &iface->iface.syntax_id);
+                                               &iface->iface->syntax_id);
                        if (!NT_STATUS_IS_OK(status)) {
                                return 0;
                        }
@@ -85,8 +85,9 @@ static uint32_t build_ep_list(TALLOC_CTX *mem_ctx,
                        status = dcerpc_binding_build_tower(*eps, description, &(*eps)[total].ep);
                        TALLOC_FREE(description);
                        if (!NT_STATUS_IS_OK(status)) {
-                               DEBUG(1, ("Unable to build tower for %s - %s\n",
-                                         iface->iface.name, nt_errstr(status)));
+                               DBG_ERR("Unable to build tower for %s - %s\n",
+                                       iface->iface->name,
+                                       nt_errstr(status));
                                continue;
                        }
                        total++;