Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Correctly use calloc
Baptiste Daroussin committed 13 years ago
commit 89063cd0066bce868cc2340625a727d38888b1fe
parent 972fa42b1d81a9ad68b21618c7f40e351f396033
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);