aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/ec
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2001-03-08 11:18:06 +0000
committerBodo Möller <bodo@openssl.org>2001-03-08 11:18:06 +0000
commit91f29a38a014618f580e76f067859440ccc39392 (patch)
tree6897f58d410df70a1eb5ae06dc0ddf74b465fd6a /crypto/ec
parent1d5bd6cf71b1e4aedda0264905a9ddc64d8c1d76 (diff)
downloadopenssl-91f29a38a014618f580e76f067859440ccc39392.tar.gz
Let EC_POINT_copy do nothing if dest==src
Diffstat (limited to 'crypto/ec')
-rw-r--r--crypto/ec/ec_lib.c2
1 files changed, 2 insertions, 0 deletions
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);
}