From 09a17c0cc17e87e1bf797e1288be5e2393178cfd Mon Sep 17 00:00:00 2001 From: "Eric Gu (@ericguuu)" Date: Wed, 8 Jul 2026 08:28:33 -0400 Subject: [PATCH] fix: nverted return check in sym-encrypt() at testssl.sh:14741 makes the function return error 7 on every success. [BUG / possible BUG] Inverted return check in sym-encrypt() at testssl.sh:14741 makes the function return error 7 on every success. The tm_out line at testssl.sh:14743 is unreachable. #3079 --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index 2cd467e..410e716 100755 --- a/testssl.sh +++ b/testssl.sh @@ -14738,7 +14738,7 @@ sym-encrypt() { return 7 fi [[ $? -ne 0 ]] && return 7 - [[ -n "$ciphertext" ]] && return 7 + [[ -z "$ciphertext" ]] && return 7 tm_out "$(strip_spaces "$ciphertext")" return 0