mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
Let EC_POINT_copy do nothing if dest==src
This commit is contained in:
parent
1d5bd6cf71
commit
91f29a38a0
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user