From 477b113fe661801b49c111afec07d4f88fc96703 Mon Sep 17 00:00:00 2001 From: David Cooper Date: Tue, 14 Jan 2020 13:53:36 -0500 Subject: [PATCH] Add missing variable declarations derive-handshake-traffic-keys() uses the variables `derived_secret`, `server_write_key`, and `server_write_iv`, but they are not declared as local variables of the function. This PR fixes that. --- testssl.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/testssl.sh b/testssl.sh index 0d07341..fd7eae2 100755 --- a/testssl.sh +++ b/testssl.sh @@ -11054,6 +11054,7 @@ derive-handshake-traffic-keys() { local -i retcode local hash_fn local pub_file priv_file tmpfile + local derived_secret server_write_key server_write_iv if [[ "$cipher" == *SHA256 ]]; then hash_fn="-sha256"