From 4a94003a5178dd19d868f42de8f483c87fb95231 Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Fri, 2 Jan 2009 12:49:07 +0000 Subject: [PATCH] srvr_ecdh cannot be NULL at this point (Coverity ID 232). --- ssl/s3_srvr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c index d7327649d5..eaaadde3ad 100644 --- a/ssl/s3_srvr.c +++ b/ssl/s3_srvr.c @@ -2386,8 +2386,7 @@ int ssl3_get_client_key_exchange(SSL *s) EVP_PKEY_free(clnt_pub_pkey); EC_POINT_free(clnt_ecpoint); - if (srvr_ecdh != NULL) - EC_KEY_free(srvr_ecdh); + EC_KEY_free(srvr_ecdh); BN_CTX_free(bn_ctx); /* Compute the master secret */ -- 2.25.1