forked from wolfSSL/wolfssl
Reject DTLS application data messages in epoch 0 as out of order.
This commit is contained in:
@ -8337,9 +8337,12 @@ 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
|
||||
|
||||
|
Reference in New Issue
Block a user