From a4deba053b6450744575053b4f3616233f63f938 Mon Sep 17 00:00:00 2001 From: Daniel Chodusov Date: Mon, 12 Mar 2018 23:58:37 +0100 Subject: [PATCH] Fixing issue 988 --- testssl.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/testssl.sh b/testssl.sh index 882c55e..18cae10 100755 --- a/testssl.sh +++ b/testssl.sh @@ -849,6 +849,7 @@ fileout() { if ( "$do_pretty_json" && [[ "$1" == "service" ]] ) || show_finding "$severity"; then local finding=$(strip_lf "$(newline_to_spaces "$(strip_quote "$3")")") + [[ -z "$finding" ]] && finding="(empty)" [[ -e "$JSONFILE" ]] && (fileout_json_finding "$1" "$severity" "$finding" "$cve" "$cwe" "$hint") "$do_csv" && \ echo -e \""$1\"",\"$NODE/$NODEIP\",\"$PORT"\",\""$severity"\",\""$finding"\",\""$cve"\",\""$cwe"\",\""$hint"\"" >> "$CSVFILE"