summaryrefslogtreecommitdiff
path: root/source3/smbd/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/server.c')
-rw-r--r--source3/smbd/server.c6
1 files changed, 2 insertions, 4 deletions
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. */