]> andersk Git - openssh.git/blobdiff - sshd.c
- Check for libwrap if --with-tcp-wrappers option specified. Suggestion
[openssh.git] / sshd.c
diff --git a/sshd.c b/sshd.c
index f49b453684352ac74099a715b908d6c8e3cd2217..0024440ed693855de09894d0695ec176a7173b73 100644 (file)
--- a/sshd.c
+++ b/sshd.c
@@ -558,7 +558,8 @@ main(int ac, char **av)
                        debug("Bind to port %s on %s.", strport, ntop);
 
                        /* Bind the socket to the desired port. */
-                       if (bind(listen_sock, ai->ai_addr, ai->ai_addrlen) < 0) {
+                       if ((bind(listen_sock, ai->ai_addr, ai->ai_addrlen) < 0) &&
+                                (!ai->ai_next)) {
                                error("Bind to port %s on %s failed: %.200s.",
                                    strport, ntop, strerror(errno));
                                close(listen_sock);
This page took 0.051579 seconds and 4 git commands to generate.