net: icmpv6: Return valid verdict in case of success

Verdict NET_DROP returned even though it handled properly.

Change-Id: I61e04b12f971b39585e983aa9a1007c63acd8b4e
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
This commit is contained in:
Ravi kumar Veeramally 2017-03-03 10:13:36 +02:00 committed by Jukka Rissanen
parent e17fe10673
commit 5a26d8dacd

View file

@ -144,9 +144,10 @@ static enum net_verdict handle_echo_request(struct net_buf *orig)
goto drop; goto drop;
} }
net_nbuf_unref(orig);
net_stats_update_icmp_sent(); net_stats_update_icmp_sent();
return NET_DROP; return NET_OK;
drop: drop:
net_nbuf_unref(buf); net_nbuf_unref(buf);