aboutsummaryrefslogtreecommitdiff
path: root/ares
diff options
context:
space:
mode:
Diffstat (limited to 'ares')
-rw-r--r--ares/ares_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares/ares_init.c b/ares/ares_init.c
index 668dc9f65..0a481e156 100644
--- a/ares/ares_init.c
+++ b/ares/ares_init.c
@@ -822,7 +822,7 @@ DhcpNameServer
return ARES_ENOMEM;
for (i = 0; def_nameservers[i]; i++)
- servers[i].addr.s_addr = htonl(def_nameservers[i]);
+ servers[i].addr.addrV4.s_addr = htonl(def_nameservers[i]);
status = ARES_EOF;
#else