Fix a bad calloc(3) call

MFC after:	2 weeks
This commit is contained in:
Baptiste Daroussin 2013-06-08 23:48:13 +00:00
parent 2c482d3a72
commit 8ad6d9175c

View file

@ -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);