From: Tobias Brunner Date: Fri, 22 Jan 2021 08:41:22 +0000 (+0100) Subject: tls-server: Remove unused variable X-Git-Tag: 5.9.2rc1~23^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=111e9071687d9df0002f9c06db0d6df4db4b82b1;p=thirdparty%2Fstrongswan.git tls-server: Remove unused variable --- diff --git a/src/libtls/tls_server.c b/src/libtls/tls_server.c index 2753231838..6562fc4f9d 100644 --- a/src/libtls/tls_server.c +++ b/src/libtls/tls_server.c @@ -563,7 +563,6 @@ static status_t process_client_hello(private_tls_server_t *this, diffie_hellman_group_t group; tls_named_group_t curve, requesting_curve = 0; enumerator_t *enumerator; - chunk_t shared_secret = chunk_empty; array_t *peer_key_shares; peer_key_shares = array_create(sizeof(key_share_t), 1); @@ -650,10 +649,8 @@ static status_t process_client_hello(private_tls_server_t *this, { DBG1(DBG_TLS, "DH key derivation failed"); this->alert->add(this->alert, TLS_FATAL, TLS_HANDSHAKE_FAILURE); - chunk_clear(&shared_secret); return NEED_MORE; } - chunk_clear(&shared_secret); this->requested_curve = 0; } }