diff options
author | Jeremy Allison <jra@samba.org> | 2014-06-05 12:32:30 -0700 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2014-07-15 12:46:11 +0200 |
commit | f925ebcacc53ec62f2c235c38b0acca9e800e533 (patch) | |
tree | 2d72d1e4b67993875c592cd22208d2e2a10b513c /source3 | |
parent | 2541ab32a316d784fb600c7c70c239430582b947 (diff) | |
download | samba-f925ebcacc53ec62f2c235c38b0acca9e800e533.tar.gz |
s3/s4: smbd, rpc, ldap, cldap, kdc services.
Allow us to start if we bind to *either* :: or 0.0.0.0.
Allows us to cope with systems configured as only IPv4
or only IPv6.
Bug #10653 - Samba won't start on a machine configured with only IPv4.
https://bugzilla.samba.org/show_bug.cgi?id=10653
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-By: Amitay Isaacs <amitay@gmail.com>
Reviewed-By: Alexander Bokovoy <ab@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Jun 7 01:01:44 CEST 2014 on sn-devel-104
(cherry picked from commit 463311422ca1caad2e228deb630e9d12e212fae1)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/server.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c index d539c5974ed..9e249d1a6b9 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -838,12 +838,16 @@ static bool open_sockets_smbd(struct smbd_parent_context *parent, continue; } - if (!smbd_open_one_socket(parent, - ev_ctx, - &ss, - port)) { - return false; - } + /* + * If we fail to open any sockets + * in this loop the parent-sockets == NULL + * case below will prevent us from starting. + */ + + (void)smbd_open_one_socket(parent, + ev_ctx, + &ss, + port); } } } |