Fix comment, getsockname() can fail legitimately.
from ircd-ratbox r25967 (jilles)
This commit is contained in:
parent
c80be1ec80
commit
0cdd90ce79
|
@ -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)
|
if(getsockname(rb_get_fd(F), (struct sockaddr *) &lip, &locallen) < 0)
|
||||||
{
|
{
|
||||||
/* this shouldn't fail so... */
|
/* this can fail if the connection disappeared in the meantime */
|
||||||
/* XXX add logging of this */
|
|
||||||
rb_close(F);
|
rb_close(F);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue