Code review

Add server side check
This commit is contained in:
Juliusz Sosinowicz
2024-01-04 13:19:36 +01:00
parent 5bdcfaa5d0
commit 14c812cdb7

View File

@@ -24251,7 +24251,8 @@ int ReceiveData(WOLFSSL* ssl, byte* output, int sz, int peek)
}
#ifdef WOLFSSL_EARLY_DATA
if (ssl->earlyData > early_data_ext && ssl->earlyData < done_early_data) {
if (ssl->options.side == WOLFSSL_SERVER_END &&
ssl->earlyData > early_data_ext && ssl->earlyData < done_early_data) {
}
else
#endif