s4:epmapper Create a proper talloc tree of endpoint floors
authorAndrew Bartlett <abartlet@samba.org>
Wed, 21 Oct 2009 04:15:48 +0000 (15:15 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 21 Oct 2009 11:43:55 +0000 (22:43 +1100)
Andrew Bartlett

source4/rpc_server/epmapper/rpc_epmapper.c

index 535f19ea76aebf28fae0f226eae526848fccb704..ade8b6909ef4285d134cc83ea776e35124c8fb57 100644 (file)
@@ -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;