summaryrefslogtreecommitdiff
path: root/fw/esp32/components/eos/rng.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2024-09-04 20:46:44 +0200
committerUros Majstorovic <majstor@majstor.org>2024-09-04 20:46:44 +0200
commit1498495768677132a83889d0dd064563a0c0ea03 (patch)
treeedd81452c15ad41f16e696cb4380df22d01868ac /fw/esp32/components/eos/rng.c
parentafd07f4bc007ddf4a9e036cd9f4c2db800719653 (diff)
network buffer fix
Diffstat (limited to 'fw/esp32/components/eos/rng.c')
-rw-r--r--fw/esp32/components/eos/rng.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fw/esp32/components/eos/rng.c b/fw/esp32/components/eos/rng.c
index ca9e051..3927df1 100644
--- a/fw/esp32/components/eos/rng.c
+++ b/fw/esp32/components/eos/rng.c
@@ -14,7 +14,7 @@ static void rng_handler(unsigned char _mtype, unsigned char *buffer, uint16_t bu
rng_len = (uint16_t)buffer[0] << 8;
rng_len |= (uint16_t)buffer[1];
- if (rng_len > EOS_NET_MTU) {
+ if (rng_len > EOS_NET_SIZE_BUF) {
rng_len = 0;
goto rng_handler_fin;
}