From 463311422ca1caad2e228deb630e9d12e212fae1 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 5 Jun 2014 12:32:30 -0700 Subject: 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 Reviewed-By: Amitay Isaacs Reviewed-By: Alexander Bokovoy Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Sat Jun 7 01:01:44 CEST 2014 on sn-devel-104 --- source3/smbd/server.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'source3') diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 298afb924c..53d615e480 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); } } } -- cgit