summaryrefslogtreecommitdiff
path: root/source3/smbd/server.c
diff options
context:
space:
mode:
authorGerald (Jerry) Carter <jerry@samba.org>2008-01-14 09:49:47 -0600
committerGerald (Jerry) Carter <jerry@samba.org>2008-01-14 09:49:47 -0600
commit582bd8071f168190e0cf1f6d1637f79ebee287c3 (patch)
treed10d1f8ebab5bdd0d6644f6fbf98d7a825ce6f84 /source3/smbd/server.c
parent84f12a59600bc3f686959d0e17cf972319059e02 (diff)
parent351377a90e44d8011a697779d2e9e225427e5cbb (diff)
downloadsamba-582bd8071f168190e0cf1f6d1637f79ebee287c3.tar.gz
samba-582bd8071f168190e0cf1f6d1637f79ebee287c3.tar.bz2
samba-582bd8071f168190e0cf1f6d1637f79ebee287c3.zip
Merge commit 'samba/v3-2-test' into v3-2-stable
(This used to be commit 6811ea1ce2d46f7303b4edf661e27d2edf54724f)
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;
}