From: Bodo Möller Date: Thu, 8 Mar 2001 11:18:06 +0000 (+0000) Subject: Let EC_POINT_copy do nothing if dest==src X-Git-Tag: OpenSSL_0_9_6a-beta2~17^2~65 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=91f29a38a014618f580e76f067859440ccc39392;p=oweals%2Fopenssl.git Let EC_POINT_copy do nothing if dest==src --- 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); }