diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-09-26 03:05:04 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:16 -0500 |
commit | 764eddb69647681f784f343a122251ca1ecf62df (patch) | |
tree | 1d64246d07b4f040c4e36367e4172135c8af5011 /source4/smbd/process_single.c | |
parent | 4b1050a6cf3e6d9f7a8e75dd90ed1ccd52f29abb (diff) | |
download | samba-764eddb69647681f784f343a122251ca1ecf62df.tar.gz |
r2646: - use a talloc destructor to ensure that sockets from the new socket
library are closed on abnormal termination
- convert the service.h structures to the new talloc methods
(This used to be commit 2dc334a3284858eb1c7190f9687c9b6c879ecc9d)
Diffstat (limited to 'source4/smbd/process_single.c')
-rw-r--r-- | source4/smbd/process_single.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/smbd/process_single.c b/source4/smbd/process_single.c index 4c0dcd4e35a..62d780277cd 100644 --- a/source4/smbd/process_single.c +++ b/source4/smbd/process_single.c @@ -55,6 +55,8 @@ static void single_accept_connection(struct event_context *ev, struct fd_event * return; } + talloc_steal(conn, sock); + DLIST_ADD(server_socket->connection_list,conn); /* return to event handling */ |