Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61322b30 authored by J. Bruce Fields - unquoted's avatar J. Bruce Fields - unquoted Committed by Trond Myklebust
Browse files

spkm3: initialize hash



There's an initialization step here I missed.

Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent b80e183d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -169,6 +169,10 @@ make_spkm3_checksum(s32 cksumtype, struct xdr_netobj *key, char *header,
	if (err)
		goto out;

	err = crypto_hash_init(&desc);
	if (err)
		goto out;

	sg_set_buf(sg, header, hdrlen);
	crypto_hash_update(&desc, sg, sg->length);