Browse Source

spkm3: initialize hash

There's an initialization step here I missed.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
J. Bruce Fields - unquoted 18 years ago
parent
commit
61322b3013
1 changed files with 4 additions and 0 deletions
  1. 4 0
      net/sunrpc/auth_gss/gss_spkm3_seal.c

+ 4 - 0
net/sunrpc/auth_gss/gss_spkm3_seal.c

@@ -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);