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:
chao.an 2021-05-10 18:02:32 +08:00 committed by Xiang Xiao
parent 9aaeaefa41
commit b0ac97adab
2 changed files with 2 additions and 2 deletions

View File

@ -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 */

View File

@ -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 */