]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
Fix comment, getsockname() can fail legitimately.
authorJilles Tjoelker <redacted>
Wed, 27 Aug 2008 23:06:19 +0000 (01:06 +0200)
committerJilles Tjoelker <redacted>
Wed, 27 Aug 2008 23:06:19 +0000 (01:06 +0200)
from ircd-ratbox r25967 (jilles)

src/listener.c

index cc8f3aebfd78c1f5329db6629e9b7a1a7e28eb9c..7f270a153f12feeeb7fce656232ebd55e9e88199 100644 (file)
@@ -568,8 +568,7 @@ accept_callback(rb_fde_t *F, int status, struct sockaddr *addr, rb_socklen_t add
 
        if(getsockname(rb_get_fd(F), (struct sockaddr *) &lip, &locallen) < 0)
        {
-               /* this shouldn't fail so... */
-               /* XXX add logging of this */
+               /* this can fail if the connection disappeared in the meantime */
                rb_close(F);
                return;
        }