mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-16 01:14:26 +09:00
On Windows the sockaddr struct is smaller than sockaddr_in6. This causes getsockname to fail because the buffer is too small. The new code uses sockaddr_storage which should be large enough to hold any supported protocol address structure. See: http://pubs.opengroup.org/onlinepubs/009696699/basedefs/sys/socket.h.html