srvr_ecdh cannot be NULL at this point (Coverity ID 232).
authorBen Laurie <ben@openssl.org>
Fri, 2 Jan 2009 12:49:07 +0000 (12:49 +0000)
committerBen Laurie <ben@openssl.org>
Fri, 2 Jan 2009 12:49:07 +0000 (12:49 +0000)
ssl/s3_srvr.c

index d732764..eaaadde 100644 (file)
@@ -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 */