mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-06-20 14:19:49 -05:00
NAS: Fix index check in proxyConsoleTLS
This commit is contained in:
parent
3d713a20dc
commit
8c6c3a268d
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user