diff options
author | Neale Ranns <nranns@cisco.com> | 2020-02-13 09:12:36 +0000 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2020-02-13 11:56:02 +0000 |
commit | 6ede570259a91cd0c34b9faf9fec7e4ec8275200 (patch) | |
tree | fc7d01ec2fb827db81fae936025ec4f389a8cc57 /src/vnet/fib/fib_entry_src_interface.c | |
parent | 685001f0abe26bafbc1f27da303019fcbc2cd4b2 (diff) |
fib: Fix some more realloc errors
Type: fix
Change-Id: I6011f5d6eae79019d3c16a260a9bedf0a76d2151
Signed-off-by: Neale Ranns <nranns@cisco.com>
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); |