jilles 3009646c96 accept(),accept4(): Don't set *addrlen = 0 on [ECONNABORTED].
If the underlying protocol reported an error (e.g. because a connection was
closed while waiting in the queue), this error was also indicated by
returning a zero-length address. For all other kinds of errors (e.g.
[EAGAIN], [ENFILE], [EMFILE]), *addrlen is unmodified and there are
successful cases where a zero-length address is returned (e.g. a connection
from an unbound Unix-domain socket), so this error indication is not
reliable.

As reported in Austin Group bug #836, modifying *addrlen on error may cause
subtle bugs if applications retry the call without resetting *addrlen.
2014-05-11 21:21:14 +00:00
..
2014-04-07 20:44:00 +00:00
2014-03-31 16:37:41 +00:00
2013-11-29 20:14:26 +00:00
2014-03-14 06:29:43 +00:00
2014-05-10 08:48:04 +00:00
2014-04-17 12:22:08 +00:00
2014-02-06 13:28:06 +00:00
2014-04-30 20:52:38 +00:00
2014-04-05 22:43:18 +00:00
2014-04-05 22:43:18 +00:00