diff options
author | ngie <ngie@FreeBSD.org> | 2017-01-07 09:09:54 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2017-01-07 09:09:54 +0000 |
commit | cdcd22435ef6e18060a11f6f0dec64ff6f242c4d (patch) | |
tree | cc669f68bb717720365f14e6bbfc78ce5f089270 /contrib/netbsd-tests/lib/libc/c063/t_fexecve.c | |
parent | 0b793cef6c39b220ba01b0ea8f4cafe880c840b6 (diff) | |
download | FreeBSD-src-cdcd22435ef6e18060a11f6f0dec64ff6f242c4d.zip FreeBSD-src-cdcd22435ef6e18060a11f6f0dec64ff6f242c4d.tar.gz |
MFC r310501:
Be more strict about IpAddress type in snmp_value_parse(..)
- Use inet_pton with AF_INET instead of doing longhand with sscanf.
- Use gethostbyname2 with AF_INET to ensure that the hostname isn't
accidentally parsed with another address family, e.g. AF_INET6.
NB: IpAddress per RFC-2578 is IPv4 only. Work is in progress to add
the InetAddress type and friends documented in RFC-4001 and
elsewhere (which supports IPv4, IPv6, and more).
Diffstat (limited to 'contrib/netbsd-tests/lib/libc/c063/t_fexecve.c')
0 files changed, 0 insertions, 0 deletions