diff options
author | J. Bruce Fields - unquoted <bfields@snoopy.citi.umich.edu> | 2007-02-10 01:33:27 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-05-02 07:37:07 -0700 |
commit | 61322b30139b79ec77170723a3a80043dcc94e87 (patch) | |
tree | ad62e094f8ec18200ef9739218b264e7686f079f /net | |
parent | b80e183deff5f3d43565b552ed91e511128a6ea9 (diff) | |
download | linux-3.10-61322b30139b79ec77170723a3a80043dcc94e87.tar.gz linux-3.10-61322b30139b79ec77170723a3a80043dcc94e87.tar.bz2 linux-3.10-61322b30139b79ec77170723a3a80043dcc94e87.zip |
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>
Diffstat (limited to 'net')
-rw-r--r-- | 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 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); |