Skip to content

Commit 7003f6b

Browse files
committed
Addressed copilot's comments
1 parent 84955e4 commit 7003f6b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

IDE/iotsafe/memory-tls.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static int mem_send(unsigned char* dst, int* write_idx, int* bytes,
7777
int available;
7878

7979
if (buf == NULL || dst == NULL || write_idx == NULL || bytes == NULL ||
80-
sz <= 0 || sz > TLS_BUFFERS_SZ) {
80+
sz <= 0) {
8181
return WOLFSSL_CBIO_ERR_GENERAL;
8282
}
8383

@@ -107,7 +107,7 @@ static int mem_recv(char* buf, int sz, unsigned char* src, int* read_idx,
107107
int available;
108108

109109
if (buf == NULL || src == NULL || read_idx == NULL || write_idx == NULL ||
110-
bytes == NULL || sz <= 0 || sz > TLS_BUFFERS_SZ) {
110+
bytes == NULL || sz <= 0) {
111111
return WOLFSSL_CBIO_ERR_GENERAL;
112112
}
113113

0 commit comments

Comments
 (0)