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.
This commit is contained in:
David Cooper 2020-01-14 13:53:36 -05:00 committed by GitHub
parent 6378371baa
commit 477b113fe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"