Commit 40a8643a authored by Matt Caswell's avatar Matt Caswell
Browse files

Avoid a NULL ptr deref if group is not set



We should only copy parameters and keys if the group is set. Otherwise
they don't really make any sense. Previously we copied the private key
regardless of whether the group was set...but if it wasn't a NULL ptr
deref could occur. It's unclear whether we could ever get into that
situation, but since we were already checking it for the public key we
should be consistent.

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent 70015713
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