mirror of
https://review.haiku-os.org/haiku
synced 2025-01-19 13:01:29 +01:00
c29a7780db
getsockname() now set the socket family and zero all other fields of sockaddr if an unnamed socket is passed as an argument. This allows retrieving the socket family from an unnamed socket. This change is compatible with POSIX and appears to aligns with Linux, FreeBSD, DragonflyBSD and OpenBSD behaviors. Fixes #14312 Change-Id: I55dbf4d6738399941bef71e6b3d7201cf78876df Reviewed-on: https://review.haiku-os.org/594 Reviewed-by: Axel Dörfler <axeld@pinc-software.de> Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>