Revert "DTLS Fuzz Fix"

This reverts commit 70d03f3ba0.
This commit is contained in:
John Safranek
2020-04-15 21:33:27 -07:00
parent ebb490204a
commit 78a9185d0b

View File

@ -14755,8 +14755,7 @@ int ProcessReply(WOLFSSL* ssl)
&ssl->curRL, &ssl->curSize);
#ifdef WOLFSSL_DTLS
if (ssl->options.dtls && ret == SEQUENCE_ERROR) {
if (ssl->keys.curEpoch == ssl->keys.dtls_epoch + 1) {
/* Store if in the next epoch. Probably finished. */
if (ssl->keys.curEpoch != 0) {
word32 sz = ssl->buffers.inputBuffer.length -
ssl->buffers.inputBuffer.idx +
DTLS_RECORD_HEADER_SZ;