mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Reject DTLS application data messages in epoch 0 as out of order.
This commit is contained in:
@ -8337,10 +8337,13 @@ static int GetRecordHeader(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
||||
}
|
||||
|
||||
#ifdef WOLFSSL_DTLS
|
||||
if (IsDtlsNotSctpMode(ssl) && !DtlsCheckWindow(ssl)) {
|
||||
if (IsDtlsNotSctpMode(ssl)) {
|
||||
if (!DtlsCheckWindow(ssl) ||
|
||||
(ssl->keys.curEpoch == 0 && rh->type == application_data)) {
|
||||
WOLFSSL_LEAVE("GetRecordHeader()", SEQUENCE_ERROR);
|
||||
return SEQUENCE_ERROR;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/* catch version mismatch */
|
||||
|
Reference in New Issue
Block a user