mpls: fix typo in error path 29/26429/2
authorDave Barach <dave@barachs.net>
Wed, 8 Apr 2020 14:19:29 +0000 (10:19 -0400)
committerNeale Ranns <nranns@cisco.com>
Thu, 9 Apr 2020 11:45:05 +0000 (11:45 +0000)
commit9cbfb4c5136614fc498b9b82d99203f8a5f7cc2e
tree0c9d6eff213119e85ba54ee574774de2f9e0d2c7
parent1adc7e78ad3eb7e800d0ce3ace56f53ab7aebffe
mpls: fix typo in error path

if ip4_frag_do_fragment(...) returns an error due to buffer allocation
failure, we end up trying to increment a nonexistent counter, which
causes an ASSERT failure.

The second argument to vlib_error_count is a node index, not a
next index...

Type: fix

Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: Ib0733b0d35bcb9d3ca6bd789e0c5ddc1561ce724
src/vnet/mpls/mpls_output.c