1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=251560

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