Handle 2+ dtls APP data records in one udp packet

Just return one message at a time if processing application data
This commit is contained in:
Juliusz Sosinowicz
2020-06-24 11:42:56 +02:00
parent 4a167c0f2c
commit 471a9bd9fd

View File

@@ -15609,8 +15609,14 @@ int ProcessReply(WOLFSSL* ssl)
ssl->options.processReply = doProcessInit; ssl->options.processReply = doProcessInit;
/* input exhausted? */ /* input exhausted */
if (ssl->buffers.inputBuffer.idx >= ssl->buffers.inputBuffer.length) if (ssl->buffers.inputBuffer.idx >= ssl->buffers.inputBuffer.length
#ifdef WOLFSSL_DTLS
/* If app data was processed then return now to avoid
* dropping any app data. */
|| (ssl->options.dtls && ssl->curRL.type == application_data)
#endif
)
return ret; return ret;
/* more messages per record */ /* more messages per record */