Hi,

In article <[EMAIL PROTECTED]> (at 02 Mar 2002 00:48:20 +0000), Matthew Vernon 
<[EMAIL PROTECTED]> says:

> Mar  2 00:40:07 ming sshd[23005]: Server listening on :: port 22.
> Mar  2 00:40:07 ming sshd[23005]: error: Bind to port 22 on 0.0.0.0
> failed: Address already in use.
:
> Any ideas? I want this to work before I upload it...

Please apply this fix (against openssh-3.0.2p1) to suppress an 
"error" message which have people confused because it is a warning 
in fact.

--- openssh-3.0.2p1/sshd.c      Mon Nov 12 09:07:12 2001
+++ openssh-3.0.2p1-fix/sshd.c  Sat Mar  2 13:11:59 2002
@@ -876,7 +876,7 @@
 
                        /* Bind the socket to the desired port. */
                        if (bind(listen_sock, ai->ai_addr, ai->ai_addrlen) < 0) 
{
-                               if (!ai->ai_next)
+                               if (!num_listen_socks && !ai->ai_next)
                                    error("Bind to port %s on %s failed: 
%.200s.",
                                            strport, ntop, strerror(errno));
                                close(listen_sock);

-- 
Hideaki YOSHIFUJI @ USAGI Project <[EMAIL PROTECTED]>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA


Reply via email to