From 96a1002f840f7a9191cd3ffbdca1d3c3d20da055 Mon Sep 17 00:00:00 2001 From: Dirk Date: Thu, 20 Sep 2018 21:43:39 +0200 Subject: [PATCH] Re-adding IP/FQDN + PORT to CSV output This commit fixes a recently introduced bug, see #1128 --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index 3b82c85..5d4f31f 100755 --- a/testssl.sh +++ b/testssl.sh @@ -896,7 +896,7 @@ fileout() { local finding=$(strip_lf "$(newline_to_spaces "$(strip_quote "$3")")") # additional quotes will mess up screen output [[ -e "$JSONFILE" ]] && [[ ! -d "$JSONFILE" ]] && fileout_json_finding "$1" "$severity" "$finding" "$cve" "$cwe" "$hint" "$do_csv" && [[ -n "$CSVFILE" ]] && [[ ! -d "$CSVFILE" ]] && \ - fileout_csv_finding "$1" "$severity" "$finding" "$cve" "$cwe" "$hint" + fileout_csv_finding "$1" "$NODE/$NODEIP", "$PORT", "$severity" "$finding" "$cve" "$cwe" "$hint" "$FIRST_FINDING" && FIRST_FINDING=false fi }