tcp_send_buffered.c: Add an assertion
This commit is contained in:
parent
ef9adcf399
commit
a2840b6354
@ -1271,6 +1271,7 @@ ssize_t psock_tcp_send(FAR struct socket *psock, FAR const void *buf,
|
|||||||
}
|
}
|
||||||
|
|
||||||
DEBUGASSERT(chunk_result <= len);
|
DEBUGASSERT(chunk_result <= len);
|
||||||
|
DEBUGASSERT(chunk_result <= chunk_len);
|
||||||
DEBUGASSERT(result >= 0);
|
DEBUGASSERT(result >= 0);
|
||||||
cp += chunk_result;
|
cp += chunk_result;
|
||||||
len -= chunk_result;
|
len -= chunk_result;
|
||||||
|
Loading…
Reference in New Issue
Block a user