summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2022-02-22 13:45:10 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2022-02-22 13:45:10 +0000
commit1e142e153a00aea8764d9868588f3b09f490e2bc (patch)
treed2d0ce4f8affee8d0e0c570c141dc5fa0eaa7c74 /regress
parentb9d99f02ae95ccda0047bdaf5c89aa387c5ff652 (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