summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/BIO_read.3
diff options
context:
space:
mode:
authordoug <>2015-02-15 22:29:02 +0000
committerdoug <>2015-02-15 22:29:02 +0000
commit45f33e931e554ae97413395258efc61c185a8508 (patch)
tree70aa935eec563fe6b630c12eaa78c7156236e6d5 /src/lib/libcrypto/man/BIO_read.3
parentd3acd3e984368bb3c8dddff6923bdf1e7f4610f2 (diff)
downloadopenbsd-45f33e931e554ae97413395258efc61c185a8508.tar.gz
openbsd-45f33e931e554ae97413395258efc61c185a8508.tar.bz2
openbsd-45f33e931e554ae97413395258efc61c185a8508.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/libcrypto/man/BIO_read.3')
0 files changed, 0 insertions, 0 deletions