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