summaryrefslogtreecommitdiff
path: root/source3/smbd/server.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-01-11 22:38:42 -0800
committerJeremy Allison <jra@samba.org>2008-01-11 22:38:42 -0800
commit05fb367a014305f385a6db6653bd327861291563 (patch)
tree0c0613cccf22ed0cc92498ee0371b95db01f5c8c /source3/smbd/server.c
parent1d1b996f3879b87418bdde2fd1691ae2cca42cd4 (diff)
parent45db92cc72eb2472425c17e72ff9254d35d8047c (diff)
downloadsamba-05fb367a014305f385a6db6653bd327861291563.tar.gz
samba-05fb367a014305f385a6db6653bd327861291563.tar.bz2
samba-05fb367a014305f385a6db6653bd327861291563.zip
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
(This used to be commit 08645826817d42c9d4b42ea0fd5e633d7fd08d35)
Diffstat (limited to 'source3/smbd/server.c')
-rw-r--r--source3/smbd/server.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 43a6d62a28..8371d17f10 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -390,8 +390,11 @@ static bool open_sockets_smbd(bool is_daemon, bool interactive, const char *smb_
}
s = fd_listenset[num_sockets] =
- open_socket_in(SOCK_STREAM, port, 0,
- ifss, True);
+ open_socket_in(SOCK_STREAM,
+ port,
+ num_sockets == 0 ? 0 : 2,
+ ifss,
+ true);
if(s == -1) {
continue;
}
@@ -467,8 +470,11 @@ static bool open_sockets_smbd(bool is_daemon, bool interactive, const char *smb_
continue;
}
- s = open_socket_in(SOCK_STREAM, port, 0,
- &ss, true);
+ s = open_socket_in(SOCK_STREAM,
+ port,
+ num_sockets == 0 ? 0 : 2,
+ &ss,
+ true);
if (s == -1) {
continue;
}