2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +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

@@ -383,11 +383,9 @@ getquad(const void *src, struct in_addr *dst,
isc_lex_t *lexer, dns_rdatacallbacks_t *callbacks)
{
int result;
struct in_addr tmp;
result = inet_aton(src, dst);
if (result == 1 && callbacks != NULL &&
inet_pton(AF_INET, src, &tmp) != 1) {
result = inet_pton(AF_INET, src, dst);
if (result != 1 && callbacks != NULL) {
const char *name = isc_lex_getsourcename(lexer);
if (name == NULL)
name = "UNKNOWN";