diff options
author | Neale Ranns <nranns@cisco.com> | 2020-02-13 09:12:36 +0000 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2020-02-14 16:50:44 +0000 |
commit | 61b96ce607ed4e42e3977faad6c743ad320c5c71 (patch) | |
tree | 181ba52240b23e51c9f573c74716ed49bb7cca24 /src/vnet/fib/fib_entry_src_interface.c | |
parent | af9c2a34353dd190eacce35741e194b7d1437ca1 (diff) |
fib: Fix some more realloc errors
Type: fix
Change-Id: I6011f5d6eae79019d3c16a260a9bedf0a76d2151
Signed-off-by: Neale Ranns <nranns@cisco.com>
(cherry picked from commit 6ede570259a91cd0c34b9faf9fec7e4ec8275200)
Diffstat (limited to 'src/vnet/fib/fib_entry_src_interface.c')
-rw-r--r-- | src/vnet/fib/fib_entry_src_interface.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vnet/fib/fib_entry_src_interface.c b/src/vnet/fib/fib_entry_src_interface.c index 88154ef90be..e1725773d93 100644 --- a/src/vnet/fib/fib_entry_src_interface.c +++ b/src/vnet/fib/fib_entry_src_interface.c @@ -56,8 +56,10 @@ fib_entry_src_interface_path_swap (fib_entry_src_t *src, fib_path_list_flags_t pl_flags, const fib_route_path_t *paths) { + fib_node_index_t fib_entry_index; ip_adjacency_t *adj; + fib_entry_index = fib_entry_get_index(entry); src->fes_pl = fib_path_list_create(pl_flags, paths); /* @@ -69,7 +71,8 @@ fib_entry_src_interface_path_swap (fib_entry_src_t *src, adj_index_t ai; ai = fib_path_list_get_adj(src->fes_pl, - fib_entry_get_default_chain_type(entry)); + fib_entry_get_default_chain_type( + fib_entry_get(fib_entry_index))); if (INDEX_INVALID != ai) { adj = adj_get(ai); |