mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
Merged in iktek01/nuttx (pull request #284)
- fixed wrong assert on udp dgram send Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
@@ -78,7 +78,7 @@ ssize_t psock_udp_send(FAR struct socket *psock, FAR const void *buf,
|
|||||||
socklen_t tolen;
|
socklen_t tolen;
|
||||||
|
|
||||||
DEBUGASSERT(psock != NULL && psock->s_crefs > 0);
|
DEBUGASSERT(psock != NULL && psock->s_crefs > 0);
|
||||||
DEBUGASSERT(psock->s_type != SOCK_DGRAM);
|
DEBUGASSERT(psock->s_type == SOCK_DGRAM);
|
||||||
|
|
||||||
conn = (FAR struct udp_conn_s *)psock->s_conn;
|
conn = (FAR struct udp_conn_s *)psock->s_conn;
|
||||||
DEBUGASSERT(conn);
|
DEBUGASSERT(conn);
|
||||||
|
|||||||
Reference in New Issue
Block a user