Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix a bad calloc(3) call (discovered by scan-build)
Alexandre Perrin committed 13 years ago
commit c25c62f4ef2d55183b78c3ff69bd84c416135616
parent af169e2
1 file changed +1 -1
modified libpkg/dns_utils.c
@@ -67,7 +67,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);