avoid coredump
authorBodo Möller <bodo@openssl.org>
Sat, 8 Feb 2003 19:49:16 +0000 (19:49 +0000)
committerBodo Möller <bodo@openssl.org>
Sat, 8 Feb 2003 19:49:16 +0000 (19:49 +0000)
Submitted by: Nils Larsch

apps/speed.c

index d6f78fb..df892c5 100644 (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]) ||