accept smaller stateless resets

This commit is contained in:
Marten Seemann
2019-08-31 12:26:37 +07:00
parent f1d14ecdea
commit 96db15c836
2 changed files with 16 additions and 1 deletions

View File

@@ -223,7 +223,7 @@ func (h *packetHandlerMap) maybeHandleStatelessReset(data []byte) bool {
if data[0]&0x80 != 0 {
return false
}
if len(data) < protocol.MinStatelessResetSize {
if len(data) < 17 /* type byte + 16 bytes for the reset token */ {
return false
}