diff --git a/usr.sbin/pkg/dns_utils.c b/usr.sbin/pkg/dns_utils.c index 239be90c9b0..cbdb3d58868 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);