From 7003f6bee21a5ee3369d19d7ce48e6a744de9acc Mon Sep 17 00:00:00 2001 From: Daniele Lacamera Date: Mon, 11 May 2026 20:55:25 +0200 Subject: [PATCH] Addressed copilot's comments --- IDE/iotsafe/memory-tls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IDE/iotsafe/memory-tls.c b/IDE/iotsafe/memory-tls.c index 5e57fe4562..d6f86e3f96 100644 --- a/IDE/iotsafe/memory-tls.c +++ b/IDE/iotsafe/memory-tls.c @@ -77,7 +77,7 @@ static int mem_send(unsigned char* dst, int* write_idx, int* bytes, int available; if (buf == NULL || dst == NULL || write_idx == NULL || bytes == NULL || - sz <= 0 || sz > TLS_BUFFERS_SZ) { + sz <= 0) { return WOLFSSL_CBIO_ERR_GENERAL; } @@ -107,7 +107,7 @@ static int mem_recv(char* buf, int sz, unsigned char* src, int* read_idx, int available; if (buf == NULL || src == NULL || read_idx == NULL || write_idx == NULL || - bytes == NULL || sz <= 0 || sz > TLS_BUFFERS_SZ) { + bytes == NULL || sz <= 0) { return WOLFSSL_CBIO_ERR_GENERAL; }