s3/s4: smbd, rpc, ldap, cldap, kdc services.
[samba.git] / source3 / smbd / server.c
index 298afb924c4ea003f0914c2fd8bfce9e5d0ea4d0..53d615e4804f2e82472c4b1d256373ef7ddabf72 100644 (file)
@@ -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);
                        }
                }
        }