OSDN Git Service

reject invalid address families in getaddrinfo
authorRich Felker <dalias@aerifal.cx>
Wed, 27 Nov 2013 05:54:03 +0000 (00:54 -0500)
committerRich Felker <dalias@aerifal.cx>
Wed, 27 Nov 2013 05:54:03 +0000 (00:54 -0500)
commitcabe9aa974aca34c0fda91028c770dee96ba51dc
treeb42c3cad3efd6a219047a676ebf9dcaf2008cc1b
parenta663c930196b50194921e7ee685d0704ac32f6f4
reject invalid address families in getaddrinfo

subsequent code assumes the address family requested is either
unspecified or one of IPv4/IPv6, and could malfunction if this
constraint is not met, so other address families should be explicitly
rejected.
src/network/getaddrinfo.c