0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-03 17:28:18 +02:00

Fix comment, getsockname() can fail legitimately.

from ircd-ratbox r25967 (jilles)
This commit is contained in:
Jilles Tjoelker 2008-08-28 01:06:19 +02:00
parent 9692f954c6
commit d60a42a27f

View 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;
}