Let EC_POINT_copy do nothing if dest==src

This commit is contained in:
Bodo Möller 2001-03-08 11:18:06 +00:00
parent 1d5bd6cf71
commit 91f29a38a0

View File

@ -316,6 +316,8 @@ int EC_POINT_copy(EC_POINT *dest, const EC_POINT *src)
ECerr(EC_F_EC_POINT_COPY, EC_R_INCOMPATIBLE_OBJECTS);
return 0;
}
if (dest == src)
return 1;
return dest->meth->point_copy(dest, src);
}