Cygwin: fix typo in accept on inet and local sockets

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2018-03-26 17:21:30 +02:00
parent fc59da00c8
commit cfe5d362fe
2 changed files with 2 additions and 2 deletions

View File

@ -879,7 +879,7 @@ fhandler_socket_inet::accept4 (struct sockaddr *peer, int *len, int flags)
build_fh_dev (dev ());
if (sock && sock->set_socket_handle (res, get_addr_family (),
get_socket_type (),
get_socket_flags ()))
get_socket_flags ()) == 0)
{
sock->async_io (false); /* set_socket_handle disables async. */
/* No locking necessary at this point. */

View File

@ -974,7 +974,7 @@ fhandler_socket_local::accept4 (struct sockaddr *peer, int *len, int flags)
build_fh_dev (dev ());
if (sock && sock->set_socket_handle (res, get_addr_family (),
get_socket_type (),
get_socket_flags ()))
get_socket_flags ()) == 0)
{
sock->async_io (false); /* set_socket_handle disables async. */
sock->set_sun_path (get_sun_path ());