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-03-18 21:34:11 +00:00
2014-03-14 06:29:43 +00:00
2012-08-22 20:01:57 +00:00
2012-03-28 20:58:30 +00:00
2012-11-14 10:33:12 +00:00
2014-03-19 12:45:40 +00:00
2014-03-14 06:29:43 +00:00
2014-03-19 00:38:27 +00:00
2014-05-01 22:28:14 +00:00
2012-06-25 05:41:16 +00:00
2012-01-26 16:35:09 +00:00
2013-11-28 18:56:34 +00:00
2014-03-18 21:34:11 +00:00
2014-03-18 21:34:11 +00:00
2012-01-02 12:12:10 +00:00
2012-10-25 09:05:21 +00:00
2014-01-16 13:42:50 +00:00
MFC
2013-02-21 21:59:35 +00:00
2013-06-29 05:05:57 +00:00
2014-04-12 21:39:17 +00:00