diff options
author | doug <> | 2015-02-15 22:29:02 +0000 |
---|---|---|
committer | doug <> | 2015-02-15 22:29:02 +0000 |
commit | 191c62e76a1c0617acb040a77924d270b58dcd9b (patch) | |
tree | 70aa935eec563fe6b630c12eaa78c7156236e6d5 /src/lib/libssl/ssl_err.c | |
parent | 28f0fa8a6e5963a5eafcf2b2f7bba409a509af88 (diff) | |
download | openbsd-191c62e76a1c0617acb040a77924d270b58dcd9b.tar.gz openbsd-191c62e76a1c0617acb040a77924d270b58dcd9b.tar.bz2 openbsd-191c62e76a1c0617acb040a77924d270b58dcd9b.zip |
Avoid calling BN_CTX_end() on a context that wasn't started.
In dsa_builtin_paramgen(), if BN_MONT_CTX_new() fails, the BN_CTX_new()
call above it will have allocated a ctx without calling BN_CTX_start() on
it. The error handling calls BN_CTX_end() when ctx is allocated.
Move the BN_MONT_CTX_new() call up so it will fail first without splitting
up the BN_CTX_new() and BN_CTX_start().
tweak + ok miod@, ok bcook@
Diffstat (limited to 'src/lib/libssl/ssl_err.c')
0 files changed, 0 insertions, 0 deletions