when dropping a DTLS message, drop the whole datagram

This commit is contained in:
John Safranek
2016-05-02 15:18:08 -07:00
parent 52d6fb575b
commit ddcf47eadd

View File

@ -8039,7 +8039,8 @@ int ProcessReply(WOLFSSL* ssl)
if (ssl->options.dtls && ret == SEQUENCE_ERROR) {
WOLFSSL_MSG("Silently dropping out of order DTLS message");
ssl->options.processReply = doProcessInit;
ssl->buffers.inputBuffer.idx += ssl->curSize;
ssl->buffers.inputBuffer.length = 0;
ssl->buffers.inputBuffer.idx = 0;
ret = DtlsPoolSend(ssl);
if (ret != 0)