udp-bsd: Use sockaddr_storage union to ensure big enough socket
authorOlivier Crête <olivier.crete@collabora.com>
Sun, 28 Jul 2019 15:33:16 +0000 (11:33 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Sun, 28 Jul 2019 15:33:16 +0000 (11:33 -0400)
commit14da0d6e048bcb4e5d5ddfa5709a4bb82d0d2ba2
tree58cf99826a09da16bc251c9be7a72895f836f956
parent702fcba914a46fe305bf080409e73fb1daaa9434
udp-bsd: Use sockaddr_storage union to ensure big enough socket

The IPv6 struct sockaddr variant is bigger than the IPv4 one,
so use the storage struct to ensure that the size is big enough.
socket/udp-bsd.c