summaryrefslogtreecommitdiff
path: root/crypto/tcrypt.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2008-01-01 15:44:50 +1100
committerHerbert Xu <herbert@gondor.apana.org.au>2008-01-11 08:17:00 +1100
commit81d15d3d86fdd377abebaafb114950861fd956db (patch)
tree9b3d67592bc959d85a438bd96e587fd98be4f27b /crypto/tcrypt.c
parent1b05f5535bc69e519435c932b133cb43ec3a632f (diff)
downloadlinux-crypto-81d15d3d86fdd377abebaafb114950861fd956db.tar.gz
linux-crypto-81d15d3d86fdd377abebaafb114950861fd956db.zip
[CRYPTO] xcbc: Fix algorithm leak when block size check fails
When the underlying algorithm has a block size other than 16 we abort without freeing it. In fact, we try to return the algorithm itself as an error! This patch plugs the leak and makes it return -EINVAL instead. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions