aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/fib
diff options
context:
space:
mode:
authorNeale Ranns <neale.ranns@cisco.com>2018-03-19 02:43:28 -0700
committerChris Luke <chris_luke@comcast.com>2018-03-19 17:09:43 +0000
commit26600e6e33ffb516ef6fefcbf0b5e554e38a3929 (patch)
tree52aadf7b851ba20e5e81c0fbeffe3ad1ad5f728d /src/vnet/fib
parentbc0796678d598a749f70f61cc0f1d5cbf1257107 (diff)
FIB code coverity found defect
Change-Id: I7cdc29dd6481242aaace75138cc34e2f5ea76b81 Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Diffstat (limited to 'src/vnet/fib')
-rw-r--r--src/vnet/fib/fib_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/fib/fib_api.c b/src/vnet/fib/fib_api.c
index a180cb94c7e..0c41d3cee83 100644
--- a/src/vnet/fib/fib_api.c
+++ b/src/vnet/fib/fib_api.c
@@ -245,7 +245,7 @@ fib_api_path_encode (const fib_route_path_encode_t * api_rpath,
!ip46_address_is_zero(&api_rpath->rpath.frp_addr))
{
if ((DPO_PROTO_IP6 == api_rpath->rpath.frp_proto) ||
- (DPO_PROTO_IP6 == api_rpath->rpath.frp_proto))
+ (DPO_PROTO_IP4 == api_rpath->rpath.frp_proto))
{
fib_table_t *fib;