reject messages that are too far from the future

This commit is contained in:
John Safranek
2016-05-22 16:10:47 -07:00
parent ddcf47eadd
commit 7c93912f1d

View File

@ -6542,6 +6542,9 @@ static INLINE int DtlsCheckWindow(DtlsState* state)
else if ((cur < next) && (window & ((DtlsSeq)1 << (next - cur - 1)))) {
return 0;
}
else if (cur > next + DTLS_SEQ_BITS) {
return 0;
}
return 1;
}