ip: set correct error in ip6-local

Type: fix

Change-Id: Ib23f823e46494f80d9d857ddde88f4939bf2b3d1
Signed-off-by: Benoît Ganne <bganne@cisco.com>
This commit is contained in:
Benoît Ganne
2021-01-19 16:40:07 +01:00
committed by Neale Ranns
parent f613a44020
commit c15539af6f

@ -1470,8 +1470,8 @@ ip6_local_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
next[1] =
error[1] != IP6_ERROR_UNKNOWN_PROTOCOL ? IP_LOCAL_NEXT_DROP : next[1];
b[0]->error = error_node->errors[0];
b[1]->error = error_node->errors[1];
b[0]->error = error_node->errors[error[0]];
b[1]->error = error_node->errors[error[1]];
if (head_of_feature_arc)
{
@ -1590,7 +1590,7 @@ ip6_local_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
next[0] =
error != IP6_ERROR_UNKNOWN_PROTOCOL ? IP_LOCAL_NEXT_DROP : next[0];
b[0]->error = error_node->errors[0];
b[0]->error = error_node->errors[error];
if (head_of_feature_arc)
{