summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/rpc_server/epmapper/rpc_epmapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/rpc_server/epmapper/rpc_epmapper.c b/source4/rpc_server/epmapper/rpc_epmapper.c
index 535f19ea76..ade8b6909e 100644
--- a/source4/rpc_server/epmapper/rpc_epmapper.c
+++ b/source4/rpc_server/epmapper/rpc_epmapper.c
@@ -65,7 +65,7 @@ static uint32_t build_ep_list(TALLOC_CTX *mem_ctx,
description = d->ep_description;
description->object = iface->iface.syntax_id;
- status = dcerpc_binding_build_tower(mem_ctx, description, &(*eps)[total].ep);
+ status = dcerpc_binding_build_tower(*eps, description, &(*eps)[total].ep);
if (NT_STATUS_IS_ERR(status)) {
DEBUG(1, ("Unable to build tower for %s\n", iface->iface.name));
continue;