diff options
author | yedg <yedg@wangsu.com> | 2020-05-14 10:51:53 +0800 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2020-05-14 07:39:25 +0000 |
commit | dbd366b239c0506b0d9984e7481967e038f10a23 (patch) | |
tree | e419a199da828fde705cd67ee742b2d0e05ebe32 /src/vnet/ip/ip4_forward.c | |
parent | b163bbb7482a0a4b4685016eda4d2b2d3a9fcbb4 (diff) |
ip: fix interface ip address del sw_if_index check
Type: fix
Signed-off-by: Ye donggang <yedg@wangsu.com>
Change-Id: Ia9f72ff2be455ecd4ff3d16e884c5a50f9df69fe
Diffstat (limited to 'src/vnet/ip/ip4_forward.c')
-rw-r--r-- | src/vnet/ip/ip4_forward.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vnet/ip/ip4_forward.c b/src/vnet/ip/ip4_forward.c index ea78d550789..4691e27c3e3 100644 --- a/src/vnet/ip/ip4_forward.c +++ b/src/vnet/ip/ip4_forward.c @@ -779,7 +779,10 @@ ip4_add_del_interface_address_internal (vlib_main_t * vm, goto done; } - ip_interface_address_del (lm, if_address_index, addr_fib); + error = ip_interface_address_del (lm, vnm, if_address_index, addr_fib, + address_length, sw_if_index); + if (error) + goto done; } else { |