summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg/dns_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pkg/dns_utils.c')
-rw-r--r--usr.sbin/pkg/dns_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pkg/dns_utils.c b/usr.sbin/pkg/dns_utils.c
index 239be90..cbdb3d5 100644
--- a/usr.sbin/pkg/dns_utils.c
+++ b/usr.sbin/pkg/dns_utils.c
@@ -66,7 +66,7 @@ dns_getsrvinfo(const char *zone)
p += len + NS_QFIXEDSZ;
}
- res = calloc(ancount, sizeof(struct dns_srvinfo));
+ res = calloc(ancount, sizeof(struct dns_srvinfo *));
if (res == NULL)
return (NULL);
OpenPOWER on IntegriCloud