avoid coredump

Submitted by: Nils Larsch
This commit is contained in:
Bodo Möller 2003-02-08 19:49:16 +00:00
parent 65b254e8c0
commit d42d2d1ab6

View File

@ -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]) ||