tcp_send_buffered.c: Add an assertion

This commit is contained in:
YAMAMOTO Takashi 2021-03-29 16:28:00 +09:00 committed by Xiang Xiao
parent ef9adcf399
commit a2840b6354

View File

@ -1271,6 +1271,7 @@ ssize_t psock_tcp_send(FAR struct socket *psock, FAR const void *buf,
}
DEBUGASSERT(chunk_result <= len);
DEBUGASSERT(chunk_result <= chunk_len);
DEBUGASSERT(result >= 0);
cp += chunk_result;
len -= chunk_result;