From: J. Bruce Fields - unquoted Date: Sat, 10 Feb 2007 06:33:27 +0000 (-0500) Subject: spkm3: initialize hash X-Git-Tag: v2.6.22-rc1~1035^2~2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=61322b30139b79ec77170723a3a80043dcc94e87;p=~shefty%2Frdma-dev.git spkm3: initialize hash There's an initialization step here I missed. Signed-off-by: J. Bruce Fields Signed-off-by: Trond Myklebust --- diff --git a/net/sunrpc/auth_gss/gss_spkm3_seal.c b/net/sunrpc/auth_gss/gss_spkm3_seal.c index 3ec9cd31420..d158635de6c 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);