ws2_32: Validate address length in bind().
commitcd34be062c057f24771c48ce59a6c54a2f2e31b2
authorZebediah Figura <zfigura@codeweavers.com>
Thu, 22 Jul 2021 01:34:51 +0000 (21 20:34 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 22 Jul 2021 11:15:26 +0000 (22 13:15 +0200)
tree94d5f7b7920ce2448f9fc13b2afbf5d497514bf0
parent2e0cb6d4dec0914d95d40853ea1876f734fa6c79
ws2_32: Validate address length in bind().

bind() returns WSAEFAULT for short length, but IOCTL_AFD_BIND returns
STATUS_INVALID_ADDRESS, which translates to WSAEADDRNOTAVAIL.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/ws2_32/socket.c
dlls/ws2_32/tests/sock.c