fib: invalid check for adj types.

Type: fix

coverity found invalid logic.

Change-Id: Ic9144ac805a4e5a18aa299794fedda044dcb65fe
Signed-off-by: Neale Ranns <nranns@cisco.com>
This commit is contained in:
Neale Ranns
2020-02-03 10:33:51 +00:00
committed by Dave Barach
parent 3d5f6229bc
commit 174959cd96

View File

@ -513,7 +513,7 @@ adj_nbr_midchain_update_rewrite (adj_index_t adj_index,
* one time only update. since we don't support changing the tunnel
* src,dst, this is all we need.
*/
if (adj->lookup_next_index != IP_LOOKUP_NEXT_MIDCHAIN ||
if (adj->lookup_next_index != IP_LOOKUP_NEXT_MIDCHAIN &&
adj->lookup_next_index != IP_LOOKUP_NEXT_MCAST_MIDCHAIN)
{
adj_midchain_setup(adj_index, fixup, fixup_data, flags);