aboutsummaryrefslogtreecommitdiff
path: root/ares/ares_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'ares/ares_init.c')
-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 92537ab14..028b1453e 100644
--- a/ares/ares_init.c
+++ b/ares/ares_init.c
@@ -797,7 +797,7 @@ DhcpNameServer
return ARES_SUCCESS; /* use localhost DNS server */
nservers = i;
- servers = calloc(sizeof(*servers), i);
+ servers = calloc(i, sizeof(struct server_state));
if (!servers)
return ARES_ENOMEM;