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:
committed by
Michał Kępień
parent
b20ff30a79
commit
a11e23b5ed
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user