From f6ff3907994acd9e94334180a160cb6e834e383e Mon Sep 17 00:00:00 2001 From: David Cooper Date: Wed, 2 Apr 2025 08:03:58 -0700 Subject: [PATCH] Fix checks with HAS_UDS and HAS_UDS2 This commit fixes a check where the Boolean variables $HAS_UDS and $HAS_UDS2 are checked for whether they are empty rather than for whether they are true. --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index 1c24737..612d8c6 100755 --- a/testssl.sh +++ b/testssl.sh @@ -19668,7 +19668,7 @@ run_starttls_injection() { outln "Need socat for this check" return 1 fi - if [[ -z "$HAS_UDS2" ]] && [[ -z "$HAS_UDS" ]]; then + if ! "$HAS_UDS2" && ! "$HAS_UDS"; then fileout "$jsonID" "WARN" "Need OpenSSL with Unix-domain socket s_client support for this check" "$cve" "$cwe" "$hint" outln "Need an OpenSSL with Unix-domain socket s_client support for this check" return 1