Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Correctly use calloc
Baptiste Daroussin committed 13 years ago
commit 89063cd0066bce868cc2340625a727d38888b1fe
parent 972fa42
1 file changed +1 -1
modified libpkg/dns_utils.c
@@ -65,7 +65,7 @@ dns_getsrvinfo(const char *zone)
		p += len + NS_QFIXEDSZ;
	}

-
	res = calloc(1, sizeof(struct dns_srvinfo) * ancount);
+
	res = calloc(ancount, sizeof(struct dns_srvinfo));
	if (res == NULL)
		return (NULL);