diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-09-25 13:28:38 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:15 -0500 |
commit | 159f81ee32dbd7c832fb8c3723d0f0207d039078 (patch) | |
tree | 45ac569c2c1d1725a23bd6500f364d956d9c9d0a /source4/rpc_server/dcerpc_tcp.c | |
parent | 6310f40448f9f9e856874cbefcc25b753963a41e (diff) | |
download | samba-159f81ee32dbd7c832fb8c3723d0f0207d039078.tar.gz samba-159f81ee32dbd7c832fb8c3723d0f0207d039078.tar.bz2 samba-159f81ee32dbd7c832fb8c3723d0f0207d039078.zip |
r2635: mem_ctx cleanups on the lsa and netlogon pipes in the rpc server
(This used to be commit 1ee5ed4197f49f12372835f66160801f19ee35a6)
Diffstat (limited to 'source4/rpc_server/dcerpc_tcp.c')
-rw-r--r-- | source4/rpc_server/dcerpc_tcp.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/source4/rpc_server/dcerpc_tcp.c b/source4/rpc_server/dcerpc_tcp.c index 78e46ed692..a77d02e796 100644 --- a/source4/rpc_server/dcerpc_tcp.c +++ b/source4/rpc_server/dcerpc_tcp.c @@ -108,14 +108,9 @@ void dcesrv_tcp_init(struct server_service *service, const struct model_ops *mod } } else { struct in_addr *ifip; - TALLOC_CTX *mem_ctx = talloc_init("open_sockets_smbd"); - if (!mem_ctx) { - smb_panic("No memory"); - } - - ifip = interpret_addr2(mem_ctx, lp_socket_address()); + ifip = interpret_addr2(dce_ctx, lp_socket_address()); add_socket_rpc(service, model_ops, dce_ctx, ifip); - talloc_destroy(mem_ctx); + talloc_free(ifip); } return; |