typo
authorBodo Möller <bodo@openssl.org>
Wed, 19 Feb 2003 16:29:47 +0000 (16:29 +0000)
committerBodo Möller <bodo@openssl.org>
Wed, 19 Feb 2003 16:29:47 +0000 (16:29 +0000)
PR: 511
Submitted by: Eric Cronin

crypto/ec/ec_key.c

index d7758c91d388c5667180782bf1c5c8055d29a0a3..aef3934c174562c808052dd37494c51f1c3f2eee 100644 (file)
@@ -199,7 +199,7 @@ EC_KEY *EC_KEY_dup(const EC_KEY *eckey)
        /* copy the private key */
        if (eckey->priv_key)
                {
-               ret->priv_key = BN_dup(ret->priv_key);
+               ret->priv_key = BN_dup(eckey->priv_key);
                if (ret->priv_key == NULL)
                        ok = 0;
                }