fib: FIB crash removing labelled route (VPP-1818) 35/24435/2
authorNeale Ranns <nranns@cisco.com>
Mon, 20 Jan 2020 02:28:00 +0000 (02:28 +0000)
committerNeale Ranns <nranns@cisco.com>
Wed, 22 Jan 2020 22:34:43 +0000 (22:34 +0000)
commit20398a368c2b82464a06afbf277b1ffea161a1d3
treec96215ce1be192ec558c5aee3c58d3984098ee36
parent29acfa2ad58c36d183677d2d68c390854e3b8060
fib: FIB crash removing labelled route (VPP-1818)

Type: fix

The crash occured trying to retreive a NULL path list to walk the path
extensions. A walk shoul not be required, because there should be no
extensins, since all paths are removed. The problem is that when the
paths were added, they were not sorted, hence neither were the
extensions and when they were updated, duplicate extensions were added,
and hence a path removal did not remove them all.
Fix is to make sure paths are sorted.

Change-Id: I069d937de8e7bc8aae3d92f588db4daff727d863
Signed-off-by: Neale Ranns <nranns@cisco.com>
(cherry picked from commit 257749c40946a9269140d322e374d74c3b6eefb8)
src/vnet/fib/fib_table.c