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:
parent
9aaeaefa41
commit
b0ac97adab
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue