fib: Copy the prefix before use in case the underlying entry reallocs. 25/23425/2
authorNeale Ranns <[email protected]>
Wed, 6 Nov 2019 11:17:54 +0000 (11:17 +0000)
committerAndrew Yourtchenko <[email protected]>
Mon, 18 Nov 2019 13:45:06 +0000 (13:45 +0000)
commitaa35702743f147aef85cf70960be253a410e9cb1
tree45820587b0a8d20be7df94873ce28919490de638
parent9a28d175d429473f87c31e62073596237e6be6fb
fib: Copy the prefix before use in case the underlying entry reallocs.

Type: fix

all other uses of the fib_entry_get_preifx in the code base don't pass
the prefix into recursive functions.

Change-Id: Ic1c56acd406a733b215ee2fd98b6bed58b490a4f
Signed-off-by: Neale Ranns <[email protected]>
(cherry picked from commit 320dfcf2aa8f4617b51a2bb15f3d0f93ee62d4dc)
src/vnet/fib/fib_attached_export.c
src/vnet/fib/fib_types.c
src/vnet/fib/fib_types.h