From 91f29a38a014618f580e76f067859440ccc39392 Mon Sep 17 00:00:00 2001 From: Bodo Möller Date: Thu, 8 Mar 2001 11:18:06 +0000 Subject: Let EC_POINT_copy do nothing if dest==src --- crypto/ec/ec_lib.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crypto/ec') diff --git a/crypto/ec/ec_lib.c b/crypto/ec/ec_lib.c index 8154a17eff..bef62961e1 100644 --- a/crypto/ec/ec_lib.c +++ b/crypto/ec/ec_lib.c @@ -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); } -- cgit v1.2.3