From 07dca9fd6b271254c041b9a323bc3f6a659e190d Mon Sep 17 00:00:00 2001 From: David Cooper Date: Thu, 25 Aug 2022 09:44:14 -0700 Subject: [PATCH] Fix #2198 This commit is the same as #2211, but for the 3.0 branch. --- testssl.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testssl.sh b/testssl.sh index fc9bad5..5d2a6e2 100755 --- a/testssl.sh +++ b/testssl.sh @@ -834,6 +834,8 @@ fileout_json_finding() { if [[ "$1" == service ]]; then if [[ $SERVER_COUNTER -gt 1 ]]; then echo " ," >> "$JSONFILE" + elif ! "$FIRST_FINDING"; then + echo -n "," >> "$JSONFILE" fi target="$NODE" $do_mx_all_ips && target="$URI"