NISTZ256: owur'ize.
[openssl.git] / crypto / ec / ec_print.c
index 96b294d8774e4694151e34be3b1b85ae4756c329..7c34694633371d13e6bda25c40fbd8939d79941a 100644 (file)
@@ -110,7 +110,7 @@ EC_POINT *EC_POINT_bn2point(const EC_GROUP *group,
         ret = point;
 
     if (!EC_POINT_oct2point(group, ret, buf, buf_len, ctx)) {
-        if (point == NULL)
+        if (ret != point)
             EC_POINT_clear_free(ret);
         OPENSSL_free(buf);
         return NULL;