2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Replace all usage of inet_aton() with inet_pton()

This commit is contained in:
Ondřej Surý
2017-10-30 15:38:23 +01:00
committed by Michał Kępień
parent b20ff30a79
commit a11e23b5ed
12 changed files with 12 additions and 214 deletions

View File

@@ -1741,7 +1741,7 @@ check_mx(ns_client_t *client, dns_zone_t *zone,
strlcpy(tmp, namebuf, sizeof(tmp)) < sizeof(tmp)) {
if (tmp[strlen(tmp) - 1] == '.')
tmp[strlen(tmp) - 1] = '\0';
if (inet_aton(tmp, &addr) == 1 ||
if (inet_pton(AF_INET, tmp, &addr) == 1 ||
inet_pton(AF_INET6, tmp, &addr6) == 1)
isaddress = ISC_TRUE;
}