commit | 4a7e0231242040513f4b78117e83aa85028ff053 | [log] [tgz] |
---|---|---|
author | Tudor-Dan Ambarus <tudor.ambarus@microchip.com> | Thu May 25 10:18:07 2017 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Nov 24 08:33:41 2017 +0100 |
tree | c58c0352e0c49eb77191f62ccaadd7fb0c0c97fa | |
parent | 67b718fcf89745836ecbf15cdd46ded2b071c3b6 [diff] |
crypto: dh - fix memleak in setkey commit ee34e2644a78e2561742bea8c4bdcf83cabf90a7 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>