mirror of https://github.com/cbeuw/Cloak
Fix a user input validation
This commit is contained in:
parent
6977138314
commit
935f995954
|
|
@ -47,7 +47,7 @@ func TouchStone(ch *ClientHello, sta *State) (isSS bool, UID []byte, sessionID u
|
||||||
sta.putUsedRandom(random)
|
sta.putUsedRandom(random)
|
||||||
|
|
||||||
ticket := ch.extensions[[2]byte{0x00, 0x23}]
|
ticket := ch.extensions[[2]byte{0x00, 0x23}]
|
||||||
if len(ticket) < 64 {
|
if len(ticket) < 68 {
|
||||||
return false, nil, 0
|
return false, nil, 0
|
||||||
}
|
}
|
||||||
UID, sessionID, err := decryptSessionTicket(sta.staticPv, ticket)
|
UID, sessionID, err := decryptSessionTicket(sta.staticPv, ticket)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue