Merge pull request #3074 from julek-wolfssl/dtls-multiple-app-records

Handle 2+ dtls APP data records in one udp packet
This commit is contained in:
toddouska
2020-08-10 14:52:04 -07:00
committed by GitHub

View File

@@ -15622,8 +15622,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 */