fib: FIB crash removing labelled route (VPP-1818) 19/24419/4
authorNeale Ranns <nranns@cisco.com>
Mon, 20 Jan 2020 02:28:00 +0000 (02:28 +0000)
committerNeale Ranns <nranns@cisco.com>
Mon, 20 Jan 2020 04:39:41 +0000 (04:39 +0000)
commit257749c40946a9269140d322e374d74c3b6eefb8
tree4eafd16cc8ee89c8f1b051edc3a7ad55400bd86b
parenta74e802f5cc819b25dc3532267869e3b57d41560
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>
src/vnet/fib/fib_table.c