From 909513773d64c3cfbc67c69dd08d2659454453f0 Mon Sep 17 00:00:00 2001 From: David Cooper Date: Tue, 8 Mar 2022 11:38:11 -0500 Subject: [PATCH] Fix sclient_auth If $connect_success is false, then sclient_auth() does not "return" any value, and the calling function treats this as if sclient_auth() had returned 0. This commit fixes sclient_auth() so that 1 is returned if $client_success is false. --- testssl.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/testssl.sh b/testssl.sh index 6a7c531..40ce4ff 100755 --- a/testssl.sh +++ b/testssl.sh @@ -21004,6 +21004,7 @@ sclient_auth() { return 1 fi fi + return 1 } # Determine the best parameters to use with tls_sockets():