From: Justus Winter <[email protected]>

Use the function from the group vtable after checking for it.

Signed-off-by: Justus Winter <[email protected]>
---
 crypto/ec/ec_key.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/ec/ec_key.c b/crypto/ec/ec_key.c
index d241154..ef8176f 100644
--- a/crypto/ec/ec_key.c
+++ b/crypto/ec/ec_key.c
@@ -484,7 +484,7 @@ int EC_KEY_set_private_key(EC_KEY *key, const BIGNUM 
*priv_key)
     if (key->group == NULL || key->group->meth == NULL)
         return 0;
     if (key->group->meth->set_private
-        && key->meth->set_private(key, priv_key) == 0)
+        && key->group->meth->set_private(key, priv_key) == 0)
         return 0;
     if (key->meth->set_private != NULL
         && key->meth->set_private(key, priv_key) == 0)
-- 
2.1.4


-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4493
Please log in as guest with password guest if prompted

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev

Reply via email to