From 2101425c596bbebbb35336b1f41e658cd3234ada Mon Sep 17 00:00:00 2001 From: Dirk Date: Fri, 2 Apr 2021 17:01:36 +0200 Subject: [PATCH] Fix redundant quotes at RHS of == While looking at #1860 there were two instances where the right hand side of expressions in a double square bracket had quotes. --- testssl.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testssl.sh b/testssl.sh index 2779579..d32de6f 100755 --- a/testssl.sh +++ b/testssl.sh @@ -3442,7 +3442,7 @@ rfc2hexcode() { local -i i for (( i=0; i < TLS_NR_CIPHERS; i++ )); do - [[ "$1" == "${TLS_CIPHER_RFC_NAME[i]}" ]] && hexc="${TLS_CIPHER_HEXCODE[i]}" && break + [[ "$1" == ${TLS_CIPHER_RFC_NAME[i]} ]] && hexc="${TLS_CIPHER_HEXCODE[i]}" && break done [[ -z "$hexc" ]] && return 1 tm_out "$hexc" @@ -7040,7 +7040,7 @@ cipher_pref_check() { [[ $? -ne 0 ]] && break cipher=$(get_cipher "$TEMPDIR/$NODEIP.parse_tls_serverhello.txt") for (( i=bundle*bundle_size; i < end_of_bundle; i++ )); do - [[ "$cipher" == "${rfc_ciph[i]}" ]] && ciphers_found2[i]=true && break + [[ "$cipher" == ${rfc_ciph[i]} ]] && ciphers_found2[i]=true && break done i=${index[i]} ciphers_found[i]=true