diff --git a/testssl.sh b/testssl.sh index 2ae67c1..141abed 100755 --- a/testssl.sh +++ b/testssl.sh @@ -6571,9 +6571,9 @@ certificate_info() { caa_node="$NODE" caa="" - while ( [[ -z "$caa" ]] && [[ "$caa_node" != "." ]] ); do + while ( [[ -z "$caa" ]] && [[ ! -z "$caa_node" ]] ); do caa="$(get_caa_rr_record $caa_node)" - caa_node+="." + [[ $caa_node =~ '.'$ ]] || caa_node+="." caa_node=${caa_node#*.} done