Skip to content

Commit f6ff390

Browse files
author
David Cooper
authored
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.
1 parent a348839 commit f6ff390

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

testssl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19668,7 +19668,7 @@ run_starttls_injection() {
1966819668
outln "Need socat for this check"
1966919669
return 1
1967019670
fi
19671-
if [[ -z "$HAS_UDS2" ]] && [[ -z "$HAS_UDS" ]]; then
19671+
if ! "$HAS_UDS2" && ! "$HAS_UDS"; then
1967219672
fileout "$jsonID" "WARN" "Need OpenSSL with Unix-domain socket s_client support for this check" "$cve" "$cwe" "$hint"
1967319673
outln "Need an OpenSSL with Unix-domain socket s_client support for this check"
1967419674
return 1

0 commit comments

Comments
 (0)