diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2022-02-22 13:45:10 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2022-02-22 13:45:10 +0000 |
commit | 1e142e153a00aea8764d9868588f3b09f490e2bc (patch) | |
tree | d2d0ce4f8affee8d0e0c570c141dc5fa0eaa7c74 /regress | |
parent | b9d99f02ae95ccda0047bdaf5c89aa387c5ff652 (diff) |
Plug leak in ec_key_create()
EVP_PKEY_set1_EC_KEY() bumps the refcount of eckey, so eckey won't be
freed at the end of keyproc() or acctproc(), which means that secrets
aren't wiped. Move EC_KEY_free() to the out label, so that the refcount
is decremented or the key freed, as appropriate.
tested/ok claudio
Diffstat (limited to 'regress')
0 files changed, 0 insertions, 0 deletions