[PATCH 4/5] spkm3: initialize hash

Bruce Fields bfields at citi.umich.edu
Tue May 1 10:56:28 EDT 2007


From: J. Bruce Fields <bfields at snoopy.citi.umich.edu>

There's an initialization step here I missed.

Signed-off-by: J. Bruce Fields <bfields at citi.umich.edu>
---
 net/sunrpc/auth_gss/gss_spkm3_seal.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/net/sunrpc/auth_gss/gss_spkm3_seal.c b/net/sunrpc/auth_gss/gss_spkm3_seal.c
index 3ec9cd3..d158635 100644
--- a/net/sunrpc/auth_gss/gss_spkm3_seal.c
+++ b/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);
 
-- 
1.5.1.1.107.g7a159



More information about the NFSv4 mailing list