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