From 8ad6d9175cb2dee6592a20551a144c8a924dc515 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Sat, 8 Jun 2013 23:48:13 +0000 Subject: [PATCH] Fix a bad calloc(3) call MFC after: 2 weeks --- usr.sbin/pkg/dns_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);