mirror of
https://github.com/openssl/openssl.git
synced 2024-12-12 03:23:59 +08:00
avoid coredump
Submitted by: Nils Larsch
This commit is contained in:
parent
65b254e8c0
commit
d42d2d1ab6
@ -2051,7 +2051,7 @@ int MAIN(int argc, char **argv)
|
||||
}
|
||||
else
|
||||
{
|
||||
ecdh_b[j]->group = ecdh_a[j]->group;
|
||||
ecdh_b[j]->group = EC_GROUP_dup(ecdh_a[j]->group);
|
||||
|
||||
/* generate two ECDH key pairs */
|
||||
if (!EC_KEY_generate_key(ecdh_a[j]) ||
|
||||
|
Loading…
Reference in New Issue
Block a user