Merge pull request #1616 from dcooper16/tls_sockets_return_value

tls_sockets() return value
This commit is contained in:
Dirk Wetter 2020-05-06 16:34:40 +02:00 committed by GitHub
commit f492cf0336
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12821,7 +12821,7 @@ parse_tls_serverhello() {
[[ $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