From ef594c4e1feb9bf765af5c647df2b7f758829047 Mon Sep 17 00:00:00 2001 From: Dirk Date: Fri, 2 Mar 2018 21:02:16 +0100 Subject: [PATCH] fix non-initialized variables --- testssl.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/testssl.sh b/testssl.sh index 9563c9b..aa86bd8 100755 --- a/testssl.sh +++ b/testssl.sh @@ -682,6 +682,10 @@ fileout_json_print_parameter() { fileout_json_finding() { local target + local finding="$3" + local cve="$4" + local cwe="$5" + local hint="$6" if "$do_json"; then "$FIRST_FINDING" || echo -n "," >> "$JSONFILE" @@ -804,6 +808,7 @@ fileout_insert_warning() { # ID, SEVERITY, FINDING, CVE, CWE, HINT fileout() { local severity="$2" + local cve="$4" local cwe="$5" local hint="$6"