summaryrefslogtreecommitdiffstats
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2014-06-05 12:32:30 -0700
committerJeremy Allison <jra@samba.org>2014-06-07 01:01:43 +0200
commit463311422ca1caad2e228deb630e9d12e212fae1 (patch)
tree324fd1fe5b7cc2b1413879ea01d94b77f27c8ef1 /source3/smbd
parent7091755c5834f74170b26a6f1e59c98a9051260d (diff)
downloadsamba-463311422ca1caad2e228deb630e9d12e212fae1.tar.gz
samba-463311422ca1caad2e228deb630e9d12e212fae1.tar.xz
samba-463311422ca1caad2e228deb630e9d12e212fae1.zip
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. 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
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/server.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 298afb924c4..53d615e4804 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -862,12 +862,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);
}
}
}