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 d7758c9..aef3934 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;
                }