Skip to content

Commit

Permalink
spkm3: initialize hash
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
J. Bruce Fields - unquoted authored and Trond Myklebust committed May 2, 2007
1 parent b80e183 commit 61322b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions net/sunrpc/auth_gss/gss_spkm3_seal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 61322b3

Please sign in to comment.