diff options
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -849,10 +849,10 @@ main(int ac, char **av) | |||
849 | debug("Bind to port %s on %s.", strport, ntop); | 849 | debug("Bind to port %s on %s.", strport, ntop); |
850 | 850 | ||
851 | /* Bind the socket to the desired port. */ | 851 | /* Bind the socket to the desired port. */ |
852 | if ((bind(listen_sock, ai->ai_addr, ai->ai_addrlen) < 0) && | 852 | if (bind(listen_sock, ai->ai_addr, ai->ai_addrlen) < 0) { |
853 | (!ai->ai_next)) { | 853 | if (!ai->ai_next) |
854 | error("Bind to port %s on %s failed: %.200s.", | 854 | error("Bind to port %s on %s failed: %.200s.", |
855 | strport, ntop, strerror(errno)); | 855 | strport, ntop, strerror(errno)); |
856 | close(listen_sock); | 856 | close(listen_sock); |
857 | continue; | 857 | continue; |
858 | } | 858 | } |