Skip to content

Commit

Permalink
crypto: shash - Propagate reinit return value
Browse files Browse the repository at this point in the history
This patch fixes crypto_shash_import to propagate the value returned
by reinit.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Herbert Xu committed Jul 8, 2009
1 parent f88ad8d commit deee228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/shash.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ int crypto_shash_import(struct shash_desc *desc, const u8 *in)
memcpy(shash_desc_ctx(desc), in, crypto_shash_descsize(tfm));

if (alg->reinit)
alg->reinit(desc);
return alg->reinit(desc);

return 0;
}
Expand Down

0 comments on commit deee228

Please sign in to comment.