Addressed copilot's comments

This commit is contained in:
Daniele Lacamera
2026-05-11 20:55:25 +02:00
parent 84955e457c
commit 7003f6bee2
+2 -2
View File
@@ -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;
}