Add missing OPENSSL_clear_free before using ec->key
authorMansour Ahmadi <m.ahmadi@northeastern.edu>
Tue, 11 Dec 2018 21:18:21 +0000 (16:18 -0500)
committerMatt Caswell <matt@openssl.org>
Thu, 13 Dec 2018 10:10:02 +0000 (10:10 +0000)
commitfaafe140a856ecbe743a0533a2d7117ece040f29
tree498093f5aa36f65a911aa7dc88edc7ec606c9199
parent3b16099e0c8df1fd5094ad4490d87ab31516bf25
Add missing OPENSSL_clear_free before using ec->key

Fixes #7657

Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7877)

(cherry picked from commit 4128136a28c3b7d3878daed728c49f18eb950adc)
crypto/cms/cms_pwri.c