summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2020-02-03 10:33:51 +0000
committerDave Barach <openvpp@barachs.net>2020-02-03 12:30:46 +0000
commit174959cd968fc491d5ad81d30d964ec7d95c6f8d (patch)
tree9cabead999890897b98a46b036341494ff1c96df
parent3d5f6229bccf77fcf7e0e17ab4f1b361fedd1b2b (diff)
fib: invalid check for adj types.
Type: fix coverity found invalid logic. Change-Id: Ic9144ac805a4e5a18aa299794fedda044dcb65fe Signed-off-by: Neale Ranns <nranns@cisco.com>
-rw-r--r--src/vnet/adj/adj_midchain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/adj/adj_midchain.c b/src/vnet/adj/adj_midchain.c
index 33da0ed829e..fcd6993586e 100644
--- a/src/vnet/adj/adj_midchain.c
+++ b/src/vnet/adj/adj_midchain.c
@@ -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);