summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crypto/ecdh/ech_key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ecdh/ech_key.c b/crypto/ecdh/ech_key.c
index d2fd363168..8b21addf3c 100644
--- a/crypto/ecdh/ech_key.c
+++ b/crypto/ecdh/ech_key.c
@@ -87,6 +87,6 @@ int ECDH_compute_key(unsigned char *key, const EC_POINT *pub_key, EC_KEY *eckey)
{
ECDH_DATA *ecdh = ecdh_check(eckey);
if (ecdh == NULL)
- return NULL;
+ return 0;
return ecdh->meth->compute_key(key, pub_key, eckey);
}