summaryrefslogtreecommitdiff
path: root/crypto/kpp.c
diff options
context:
space:
mode:
authorTudor-Dan Ambarus <tudor.ambarus@microchip.com>2017-05-25 10:18:07 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2017-06-10 12:04:26 +0800
commit8d5ffb267073e7aa5f3ae4c5d9a7543484ded885 (patch)
treeb83a0955f79482b15bbe4dcccfaefd3daef7b9ee /crypto/kpp.c
parent87d53a5643d67a581cecf84e936637864774314f (diff)
downloadlinux-crypto-8d5ffb267073e7aa5f3ae4c5d9a7543484ded885.tar.gz
linux-crypto-8d5ffb267073e7aa5f3ae4c5d9a7543484ded885.zip
crypto: dh - fix memleak in setkey
setkey can be called multiple times during the existence of the transformation object. In case of multiple setkey calls, the old key was not freed and we leaked memory. Free the old MPI key if any. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/kpp.c')
0 files changed, 0 insertions, 0 deletions