diff options
author | Jan Engelhardt <jengelh@inai.de> | 2017-03-08 17:26:57 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-03-08 17:48:53 +0100 |
commit | 48ad179bfdfdcab2e742ddfc868d2abaae78dcd3 (patch) | |
tree | 8b06826ba8e4ba772cb1b0d7d6794ff316c6028d | |
parent | 9f50bbdfee7e5f16ac84fb7f7605f9cdce82062a (diff) |
libxtables: abolish AI_CANONNAME
ares->ai_canonname is never used, so there is no point in requesting
that piece of information with AI_CANONNAME.
Signed-off-by: Jan Engelhardt <jengelh@inai.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | libxtables/xtables.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libxtables/xtables.c b/libxtables/xtables.c index ae73a06a..891d81a7 100644 --- a/libxtables/xtables.c +++ b/libxtables/xtables.c @@ -1367,7 +1367,6 @@ static struct in_addr *host_to_ipaddr(const char *name, unsigned int *naddr) unsigned int i; memset(&hints, 0, sizeof(hints)); - hints.ai_flags = AI_CANONNAME; hints.ai_family = AF_INET; hints.ai_socktype = SOCK_RAW; @@ -1654,7 +1653,6 @@ host_to_ip6addr(const char *name, unsigned int *naddr) unsigned int i; memset(&hints, 0, sizeof(hints)); - hints.ai_flags = AI_CANONNAME; hints.ai_family = AF_INET6; hints.ai_socktype = SOCK_RAW; |