Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Do not forget to allocate the memory for the output of the blake2b sum
Baptiste Daroussin committed 11 years ago
commit efeb81b620ea0ab6b18686324edf20b50d24b0bb
parent 0cc416339a38f9e84d5ed069034ee659b2f8bee3
1 file changed +1 -0
modified libpkg/pkg_checksum.c
@@ -433,6 +433,7 @@ pkg_checksum_hash_blake2_file(int fd, unsigned char **out, size_t *outlen)
	while ((r = read(fd, buffer, sizeof(buffer))) > 0)
		blake2b_update(&st, buffer, r);

+
	*out = malloc(BLAKE2B_OUTBYTES);
	blake2b_final(&st, *out, BLAKE2B_OUTBYTES);
	*outlen = BLAKE2B_OUTBYTES;
}