NAS: Fix index check in proxyConsoleTLS
Some checks failed
Build CI / build (push) Has been cancelled
golangci-lint / lint (push) Has been cancelled

This commit is contained in:
Palapeli 2026-04-07 23:17:44 -04:00
parent 3d713a20dc
commit 8c6c3a268d
No known key found for this signature in database
GPG Key ID: 1FFE8F556A474925

View File

@ -738,7 +738,7 @@ func proxyConsoleTLS(moduleName string, conn bufferedConn, nasAddr string, versi
index += n
total += n
for index < 5 {
for index >= 5 {
if buf[0] < 0x15 || buf[0] > 0x17 {
logging.Error(moduleName, "Invalid record type")
return