net: ip: shell: Fix ipv4 echo reply callback to unref packet
The ICMPv4 handler needs to unref the received echo reply packet because we are returning NET_OK to caller. Similar change was done for IPv6 earlier. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
b92a40a798
commit
ff22595c31
1 changed files with 1 additions and 0 deletions
|
@ -1861,6 +1861,7 @@ static enum net_verdict _handle_ipv4_echo_reply(struct net_pkt *pkt)
|
|||
k_sem_give(&ping_timeout);
|
||||
_remove_ipv4_ping_handler();
|
||||
|
||||
net_pkt_unref(pkt);
|
||||
return NET_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue