vlib: fix for vlib_node_add_next_with_slot 78/23178/3
authorChristian Hopps <chopps@labn.net>
Sun, 3 Nov 2019 04:59:49 +0000 (00:59 -0400)
committerDave Barach <openvpp@barachs.net>
Mon, 4 Nov 2019 12:31:51 +0000 (12:31 +0000)
commit2e8b0618b12d317f2a4632e69a0663dcd8dde472
tree1b31918e8f1c144bf805e125b2adb3fdcb93c010
parentbf103d99e651f3b221361f6d964ae84870fd7a6b
vlib: fix for vlib_node_add_next_with_slot

- vlib_node_add_next_with_slot was not cleaning the old next node
references to the given slot when replacing it with new next node. This mostly
worked until one tried to set the slot to a previously (but not currently) used
next node for that slot.

Type: fix

Signed-off-by: Christian Hopps <chopps@labn.net>
Change-Id: I7ee607625da874e320158b80f12ddc16e377f8e9
src/vlib/node.c