Improve compatibility of point and curve checks
[openssl.git] / crypto / ec / ecp_smpl.c
index 7ff5489ce1a8184db71c34da3d54d0117a03376b..8543b41608c84e0e518d31113d3a51b6ab9567d2 100644 (file)
@@ -347,6 +347,7 @@ int ec_GFp_simple_point_copy(EC_POINT *dest, const EC_POINT *src)
     if (!BN_copy(dest->Z, src->Z))
         return 0;
     dest->Z_is_one = src->Z_is_one;
+    dest->curve_name = src->curve_name;
 
     return 1;
 }