diff --git a/src/internal.c b/src/internal.c index 6d38b5e34..5262027c0 100644 --- a/src/internal.c +++ b/src/internal.c @@ -15838,20 +15838,15 @@ int DoApplicationData(WOLFSSL* ssl, byte* input, word32* inOutIdx) int process = 0; if (ssl->options.side == WOLFSSL_SERVER_END) { - ssl->earlyDataSz += ssl->curSize; if ((ssl->earlyData != no_early_data) && (ssl->options.clientState == CLIENT_HELLO_COMPLETE)) { process = 1; } - if (!process && (ssl->earlyDataSz <= ssl->options.maxEarlyDataSz)) { + if (!process) { WOLFSSL_MSG("Ignoring EarlyData!"); *inOutIdx = ssl->buffers.inputBuffer.length; return 0; } - if (ssl->earlyDataSz > ssl->options.maxEarlyDataSz) { - WOLFSSL_MSG("Too much EarlyData!"); - process = 0; - } } if (!process) { WOLFSSL_MSG("Received App data before a handshake completed");