fib: Copy the prefix before use in case the underlying entry reallocs. 81/23281/2
authorNeale Ranns <nranns@cisco.com>
Wed, 6 Nov 2019 11:17:54 +0000 (11:17 +0000)
committerNeale Ranns <nranns@cisco.com>
Thu, 14 Nov 2019 12:24:58 +0000 (12:24 +0000)
commit320dfcf2aa8f4617b51a2bb15f3d0f93ee62d4dc
treea636ed738009ce52113b78da98323affe837231c
parente16707b5b2195fda47c1a3db7ba61f30055d2dbc
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 <nranns@cisco.com>
src/vnet/fib/fib_attached_export.c
src/vnet/fib/fib_types.c
src/vnet/fib/fib_types.h