From 3d48e6c7cb92ca630d3188c454698007d98dbc91 Mon Sep 17 00:00:00 2001 From: David Cooper Date: Wed, 6 May 2020 08:39:22 -0400 Subject: [PATCH] Backport #1609 and #1616 This commit back ports #1609 and #1616 to the 3.0 branch. --- testssl.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/testssl.sh b/testssl.sh index bb3b552..9eef150 100755 --- a/testssl.sh +++ b/testssl.sh @@ -11738,11 +11738,12 @@ parse_tls_serverhello() { [[ $DEBUG -ge 1 ]] && tmpfile_handle ${FUNCNAME[0]}.txt return 3 fi - elif [[ $tls_content_type != 14 ]] && [[ $tls_content_type != 15 ]] && \ + fi + if [[ $tls_content_type != 14 ]] && [[ $tls_content_type != 15 ]] && \ [[ $tls_content_type != 16 ]] && [[ $tls_content_type != 17 ]]; then debugme tmln_warning "Content type other than alert, handshake, change cipher spec, or application data detected." [[ $DEBUG -ge 1 ]] && tmpfile_handle ${FUNCNAME[0]}.txt - return 8 + return 1 elif [[ "${tls_protocol:0:2}" != 03 ]]; then debugme tmln_warning "Protocol record_version.major is not 03." [[ $DEBUG -ge 1 ]] && tmpfile_handle ${FUNCNAME[0]}.txt