From 764eddb69647681f784f343a122251ca1ecf62df Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 26 Sep 2004 03:05:04 +0000 Subject: 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) --- source4/smbd/process_standard.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/smbd/process_standard.c') diff --git a/source4/smbd/process_standard.c b/source4/smbd/process_standard.c index 22e47d1b1f..1bb30c2ef0 100644 --- a/source4/smbd/process_standard.c +++ b/source4/smbd/process_standard.c @@ -80,6 +80,8 @@ static void standard_accept_connection(struct event_context *ev, struct fd_event return; } + talloc_steal(conn, sock); + DLIST_ADD(server_socket->connection_list,conn); /* return to the event loop */ -- cgit