ip6: fix error in ip6_input_check 89/41489/2
authorBenoît Ganne <[email protected]>
Wed, 28 Aug 2024 09:41:46 +0000 (11:41 +0200)
committerFlorin Coras <[email protected]>
Wed, 28 Aug 2024 15:41:50 +0000 (15:41 +0000)
Type: fix

Change-Id: Ibe8ee27484c3b7b920529fd082b1e46b7daef1e5
Signed-off-by: Benoît Ganne <[email protected]>
src/vnet/ip/ip6_input.h

index 8090831..25eae62 100644 (file)
@@ -102,7 +102,7 @@ ip6_input_check_x2 (vlib_main_t *vm, vlib_node_runtime_t *error_node,
     }
   if (PREDICT_FALSE (error1 != IP6_ERROR_NONE))
     {
-      p1->error = error_node->errors[error0];
+      p1->error = error_node->errors[error1];
 
       if (error1 == IP6_ERROR_TIME_EXPIRED)
        {