mirror of
https://github.com/apache/nuttx.git
synced 2026-09-24 00:42:03 +08:00
net/icmp: fix invalid condition comparison
up_assert: Assertion failed at file: icmp/icmp_recvmsg.c line: 175 task: net_tasklet Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
@@ -162,7 +162,7 @@ static uint16_t recvfrom_eventhandler(FAR struct net_driver_s *dev,
|
||||
|
||||
/* Return the size of the returned data */
|
||||
|
||||
DEBUGASSERT(recvsize > INT16_MAX);
|
||||
DEBUGASSERT(recvsize <= INT16_MAX);
|
||||
pstate->recv_result = recvsize;
|
||||
|
||||
/* Return the IPv4 address of the sender from the IPv4 header */
|
||||
|
||||
@@ -169,7 +169,7 @@ static uint16_t recvfrom_eventhandler(FAR struct net_driver_s *dev,
|
||||
|
||||
/* Return the size of the returned data */
|
||||
|
||||
DEBUGASSERT(recvsize > INT16_MAX);
|
||||
DEBUGASSERT(recvsize <= INT16_MAX);
|
||||
pstate->recv_result = recvsize;
|
||||
|
||||
/* Return the IPv6 address of the sender from the IPv6 header */
|
||||
|
||||
Reference in New Issue
Block a user