From dd5487b21381e1e29b03378a920593309a69c6b6 Mon Sep 17 00:00:00 2001 From: David Cooper Date: Mon, 19 Dec 2016 17:06:45 -0500 Subject: [PATCH] Ensure cipher[i]="" in SSLv3 test --- testssl.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/testssl.sh b/testssl.sh index 1a0c197..f0a80f7 100755 --- a/testssl.sh +++ b/testssl.sh @@ -4499,6 +4499,7 @@ run_server_preference() { tls_sockets "00" "$TLS_CIPHER" if [[ $? -eq 0 ]]; then proto[i]="SSLv3" + cipher[i]="" cipher1=$(awk '/Cipher *:/ { print $3 }' "$TEMPDIR/$NODEIP.parse_tls_serverhello.txt") [[ $TLS_NR_CIPHERS -ne 0 ]] && cipher[i]="$(rfc2openssl "$cipher1")" [[ -z "${cipher[i]}" ]] && cipher[i]="$cipher1"