From 5a26d8dacd0a9114b4db59db33d2a164c2c8d3ed Mon Sep 17 00:00:00 2001 From: Ravi kumar Veeramally Date: Fri, 3 Mar 2017 10:13:36 +0200 Subject: [PATCH] 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 --- subsys/net/ip/icmpv6.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subsys/net/ip/icmpv6.c b/subsys/net/ip/icmpv6.c index 27519c9a12..bfdbfb5e5c 100644 --- a/subsys/net/ip/icmpv6.c +++ b/subsys/net/ip/icmpv6.c @@ -144,9 +144,10 @@ static enum net_verdict handle_echo_request(struct net_buf *orig) goto drop; } + net_nbuf_unref(orig); net_stats_update_icmp_sent(); - return NET_DROP; + return NET_OK; drop: net_nbuf_unref(buf);