ip6: fix error in ip6_input_check

Type: fix

Change-Id: Ibe8ee27484c3b7b920529fd082b1e46b7daef1e5
Signed-off-by: Benoît Ganne <bganne@cisco.com>
diff --git a/src/vnet/ip/ip6_input.h b/src/vnet/ip/ip6_input.h
index 8090831..25eae62 100644
--- a/src/vnet/ip/ip6_input.h
+++ b/src/vnet/ip/ip6_input.h
@@ -102,7 +102,7 @@
     }
   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)
 	{