Commit d71eb667 authored by Matt Caswell's avatar Matt Caswell
Browse files

Don't leak memory on error in BN_generate_prime_ex



In BN_generate_prime_ex() we do some sanity checks first and return
with an error if they fail. We should do that *before* allocating any
resources to avoid a memory leak.

Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
parent 91fb42dd
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment