diff options
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; |