r6530: the server ID of a connection in the single process model should be
authorAndrew Tridgell <tridge@samba.org>
Sat, 30 Apr 2005 09:54:58 +0000 (09:54 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:16:23 +0000 (13:16 -0500)
based on the new socket fd, not the listening socket!

this fixes locktest with -M single

source/smbd/process_single.c

index 8d26481a951c827fc494bdb9ea917f5a1deb112f..56b074a629491d41a8100fd0a39ee2fb37f8f7be 100644 (file)
@@ -56,7 +56,7 @@ static void single_accept_connection(struct event_context *ev,
 
        talloc_steal(private, sock);
 
-       new_conn(ev, sock2, socket_get_fd(sock), private);
+       new_conn(ev, sock2, socket_get_fd(sock2), private);
 }
 
 /*