summaryrefslogtreecommitdiffstats
path: root/libxtables
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@inai.de>2017-03-08 17:26:57 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2017-03-08 17:48:53 +0100
commit48ad179bfdfdcab2e742ddfc868d2abaae78dcd3 (patch)
tree8b06826ba8e4ba772cb1b0d7d6794ff316c6028d /libxtables
parent9f50bbdfee7e5f16ac84fb7f7605f9cdce82062a (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>
Diffstat (limited to 'libxtables')
-rw-r--r--libxtables/xtables.c2
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;