Don't free in cleanup routine
authorBenjamin Kaduk <bkaduk@akamai.com>
Tue, 28 Feb 2017 22:09:53 +0000 (16:09 -0600)
committerRich Salz <rsalz@openssl.org>
Wed, 1 Mar 2017 00:45:19 +0000 (19:45 -0500)
commit5c6c4c5c333c8ac469e53521cf747ff527b8813a
tree1d74196913cdd58a65a5dc3e92aa878a6f204c60
parent695ecf8b44342d8870b1fc55f423710a7e5e89eb
Don't free in cleanup routine

Cleanse instead, and free in the free routine.

Seems to have been introduced in commit
846ec07d904f9cc81d486db0db14fb84f61ff6e5 when EVP_CIPHER_CTX was made
opaque.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2798)
crypto/cmac/cmac.c