In "crypto/ec/ec_lib.c" function "EC_POINT_invert" checks "dbl"
function pointer instead of "invert". Fix attached.

Billy

diff -ur openssl-1.0.1-stable-SNAP-20110721-orig/crypto/ec/ec_lib.c openssl-1.0.1-stable-SNAP-20110721/crypto/ec/ec_lib.c
--- openssl-1.0.1-stable-SNAP-20110721-orig/crypto/ec/ec_lib.c	2011-06-06 16:00:20.000000000 +0300
+++ openssl-1.0.1-stable-SNAP-20110721/crypto/ec/ec_lib.c	2011-07-21 11:29:01.382208100 +0300
@@ -942,7 +942,7 @@
 
 int EC_POINT_invert(const EC_GROUP *group, EC_POINT *a, BN_CTX *ctx)
 	{
-	if (group->meth->dbl == 0)
+	if (group->meth->invert == 0)
 		{
 		ECerr(EC_F_EC_POINT_INVERT, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
 		return 0;

Reply via email to