Ensure cipher[i]="" in SSLv3 test

This commit is contained in:
David Cooper 2016-12-19 17:06:45 -05:00 committed by GitHub
parent 6492954735
commit dd5487b213
1 changed files with 1 additions and 0 deletions

View File

@ -4499,6 +4499,7 @@ run_server_preference() {
tls_sockets "00" "$TLS_CIPHER" tls_sockets "00" "$TLS_CIPHER"
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then
proto[i]="SSLv3" proto[i]="SSLv3"
cipher[i]=""
cipher1=$(awk '/Cipher *:/ { print $3 }' "$TEMPDIR/$NODEIP.parse_tls_serverhello.txt") cipher1=$(awk '/Cipher *:/ { print $3 }' "$TEMPDIR/$NODEIP.parse_tls_serverhello.txt")
[[ $TLS_NR_CIPHERS -ne 0 ]] && cipher[i]="$(rfc2openssl "$cipher1")" [[ $TLS_NR_CIPHERS -ne 0 ]] && cipher[i]="$(rfc2openssl "$cipher1")"
[[ -z "${cipher[i]}" ]] && cipher[i]="$cipher1" [[ -z "${cipher[i]}" ]] && cipher[i]="$cipher1"