parse and write ACKs that for packet number 0

This commit is contained in:
Marten Seemann
2017-12-04 11:12:55 +07:00
parent cc3bfc1fa7
commit 6ce3336be5
2 changed files with 36 additions and 6 deletions

View File

@@ -89,7 +89,7 @@ func ParseAckFrame(r *bytes.Reader, version protocol.VersionNumber) (*AckFrame,
return nil, ErrInvalidFirstAckRange
}
if ackBlockLength > largestAcked {
if ackBlockLength > largestAcked+1 {
return nil, ErrInvalidAckRanges
}