Fix a user input validation

This commit is contained in:
Qian Wang 2019-01-19 13:18:13 +00:00
parent 6977138314
commit 935f995954
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ func TouchStone(ch *ClientHello, sta *State) (isSS bool, UID []byte, sessionID u
sta.putUsedRandom(random)
ticket := ch.extensions[[2]byte{0x00, 0x23}]
if len(ticket) < 64 {
if len(ticket) < 68 {
return false, nil, 0
}
UID, sessionID, err := decryptSessionTicket(sta.staticPv, ticket)