From 9d84308e3e0d73e8a2a42b285ec4bc0b5405711e Mon Sep 17 00:00:00 2001 From: Dirk Wetter Date: Wed, 1 May 2019 11:26:39 +0200 Subject: [PATCH] Remove " " ";" in rDnS ... as occasionally they showed up when using dig which made the rDNS output look like it's not supposed to be --- testssl.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testssl.sh b/testssl.sh index aca7fe7..1bd9d25 100755 --- a/testssl.sh +++ b/testssl.sh @@ -17379,6 +17379,9 @@ determine_rdns() { fi OPENSSL_CONF="$saved_openssl_conf" # see https://github.com/drwetter/testssl.sh/issues/134 rDNS="$(echo $rDNS)" + # remove chars which under weird circumstances can show up here + rDNS=${rDNS// /} + rDNS=${rDNS//;/} [[ -z "$rDNS" ]] && rDNS="--" return 0 }