Merge pull request #2123 from enxio/3.1dev

Improvements in local variable declaration in PR #2114
This commit is contained in:
Dirk Wetter 2022-03-16 09:51:12 +01:00 committed by GitHub
commit 3750ebc4d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -11160,15 +11160,16 @@ starttls_mysql_dialog() {
}
starttls_telnet_dialog() {
debugme echo "=== starting telnet STARTTLS dialog ==="
local debugpad=" > "
local tnres=""
local -i ret=0
local msg1="
, xff, xfb, x2e"
local msg2="
, xff, xfa, x2e, x01, xff, xf0
"
local tnres=""
local ret=""
debugme echo "=== starting telnet STARTTLS dialog ==="
socksend "${msg1}" 0 && debugme echo "${debugpad}initiated STARTTLS" &&
socksend "${msg2}" 1 &&
tnres=$(sockread_fast 20) && debugme echo "read succeeded"