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 d6f78fb5d4a2cb99744187655b1926a558b15a06..df892c51fb2b06df8db0ba63b287be8c020f0157 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]) ||