From 26600e6e33ffb516ef6fefcbf0b5e554e38a3929 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Mon, 19 Mar 2018 02:43:28 -0700 Subject: FIB code coverity found defect Change-Id: I7cdc29dd6481242aaace75138cc34e2f5ea76b81 Signed-off-by: Neale Ranns --- src/vnet/fib/fib_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit 1.2.3-korg