From 6c25260ec12552653eabed25451866e370108c37 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 9 Nov 2007 15:09:16 -0800 Subject: Remove more static fstring/pstrings. Fix socket option set on wrong fd (-1). Jeremy. (This used to be commit 52fe04df8e8c08126afe61d509fc1d3cb676e327) --- source3/smbd/server.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source3/smbd') diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 547e9c6e81..e89a94599e 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -379,8 +379,7 @@ static bool open_sockets_smbd(bool is_daemon, bool interactive, const char *smb_ /* ready to listen */ set_socket_options(s,"SO_KEEPALIVE"); - set_socket_options(smbd_server_fd(), - lp_socket_options()); + set_socket_options(s,lp_socket_options()); /* Set server socket to * non-blocking for the accept. */ @@ -446,8 +445,7 @@ static bool open_sockets_smbd(bool is_daemon, bool interactive, const char *smb_ /* ready to listen */ set_socket_options(s,"SO_KEEPALIVE"); - set_socket_options(smbd_server_fd(), - lp_socket_options()); + set_socket_options(s,lp_socket_options()); /* Set server socket to non-blocking * for the accept. */ -- cgit