vlib: fix for vlib_node_add_next_with_slot 45/23445/2
authorChristian Hopps <chopps@labn.net>
Sun, 3 Nov 2019 04:59:49 +0000 (00:59 -0400)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Mon, 18 Nov 2019 13:16:39 +0000 (13:16 +0000)
commitd74cb99a98ded19ae851ee4e0858ccd3d1543c8f
tree16d7ccbba1f97b9dda8b2e40b48437e62f018249
parent511cef1b9e9cdae5ef535beffe7714ebd0333b3a
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
(cherry picked from commit 2e8b0618b12d317f2a4632e69a0663dcd8dde472)
src/vlib/node.c