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
This commit is contained in:
Eric Gu (@ericguuu)
2026-07-08 08:28:33 -04:00
committed by GitHub
parent 9fdf8028ba
commit 09a17c0cc1
+1 -1
View File
@@ -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