summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-06-08 23:48:13 +0000
committerbapt <bapt@FreeBSD.org>2013-06-08 23:48:13 +0000
commit640526e3805496cda21ed4600cfaaf985d2f6159 (patch)
tree4fbec1682ccc4dac41e0b0707fd227b9cd3daf6e /usr.sbin/pkg
parentff6873b414e5c152040f7647ace8549bb37f6d56 (diff)
downloadFreeBSD-src-640526e3805496cda21ed4600cfaaf985d2f6159.zip
FreeBSD-src-640526e3805496cda21ed4600cfaaf985d2f6159.tar.gz
Fix a bad calloc(3) call
MFC after: 2 weeks
Diffstat (limited to 'usr.sbin/pkg')
-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