diff options
author | 2014-04-15 18:55:21 +0000 | |
---|---|---|
committer | 2014-04-15 18:55:21 +0000 | |
commit | 712e1549f2981d8a2e158104225d76abcd6fcc58 (patch) | |
tree | 66a76444607cd64d5bf9acc8202ede240a8c7df2 /lib/libssl/src | |
parent | No longer mention OPENSSL_EC_BIN_PT_COMP being required to allow for (diff) | |
download | wireguard-openbsd-712e1549f2981d8a2e158104225d76abcd6fcc58.tar.xz wireguard-openbsd-712e1549f2981d8a2e158104225d76abcd6fcc58.zip |
In EC_POINT_invert(), actually check the correct function pointer for NULL
before attempting to invoke it; trivial one-liner in OpenSSL RT #2569 ignored
for 2.5 years.
Diffstat (limited to 'lib/libssl/src')
-rw-r--r-- | lib/libssl/src/crypto/ec/ec_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libssl/src/crypto/ec/ec_lib.c b/lib/libssl/src/crypto/ec/ec_lib.c index de9a0cc2b37..e2c4741b5b7 100644 --- a/lib/libssl/src/crypto/ec/ec_lib.c +++ b/lib/libssl/src/crypto/ec/ec_lib.c @@ -942,7 +942,7 @@ int EC_POINT_dbl(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, BN_CTX * int EC_POINT_invert(const EC_GROUP *group, EC_POINT *a, BN_CTX *ctx) { - if (group->meth->dbl == 0) + if (group->meth->invert == 0) { ECerr(EC_F_EC_POINT_INVERT, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); return 0; |