]> err.no Git - linux-2.6/commitdiff
spkm3: initialize hash
authorJ. Bruce Fields - unquoted <bfields@snoopy.citi.umich.edu>
Sat, 10 Feb 2007 06:33:27 +0000 (01:33 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 2 May 2007 14:37:07 +0000 (07:37 -0700)
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>
net/sunrpc/auth_gss/gss_spkm3_seal.c

index 3ec9cd31420cb2b448f38e6223a637af6c52c27d..d158635de6c08dc8a66a0b2f89fd79bed0f12d78 100644 (file)
@@ -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);