X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fec%2Fecdh_ossl.c;h=caf65de8c46e4f2733caff9ed94f9f6325d8e263;hp=715465c5fbf338d4f16de2592e3dffd16aa09b6b;hb=65ea288d47bd3ec8c787108d7e56d8f5ff43281f;hpb=70a56b914772e6b21cda2a5742817ae4bb7290f1 diff --git a/crypto/ec/ecdh_ossl.c b/crypto/ec/ecdh_ossl.c index 715465c5fb..caf65de8c4 100644 --- a/crypto/ec/ecdh_ossl.c +++ b/crypto/ec/ecdh_ossl.c @@ -38,7 +38,7 @@ int ossl_ecdh_compute_key(unsigned char **psec, size_t *pseclen, { if (ecdh->group->meth->ecdh_compute_key == NULL) { ECerr(EC_F_OSSL_ECDH_COMPUTE_KEY, EC_R_CURVE_DOES_NOT_SUPPORT_ECDH); - return -1; + return 0; } return ecdh->group->meth->ecdh_compute_key(psec, pseclen, pub_key, ecdh);