mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
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:
@@ -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 */
|
||||||
|
Reference in New Issue
Block a user