fib: Copy the prefix before use in case the underlying entry reallocs. 26/23426/1
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:25:21 +0000 (12:25 +0000)
commit11b5d24cde2a5ecbfed5925b2b748fd3dd955fc2
tree6d1ba65540fc93047e51639a4bd17a2abee87bcd
parentfaf62c8b20e8335bf0e86a68d34636bf4c312fef
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>
(cherry picked from commit 320dfcf2aa8f4617b51a2bb15f3d0f93ee62d4dc)
src/vnet/fib/fib_attached_export.c
src/vnet/fib/fib_types.c
src/vnet/fib/fib_types.h