FIB code coverity found defect 06/11206/2
authorNeale Ranns <neale.ranns@cisco.com>
Mon, 19 Mar 2018 09:43:28 +0000 (02:43 -0700)
committerChris Luke <chris_luke@comcast.com>
Mon, 19 Mar 2018 17:09:43 +0000 (17:09 +0000)
Change-Id: I7cdc29dd6481242aaace75138cc34e2f5ea76b81
Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
src/vnet/fib/fib_api.c

index a180cb9..0c41d3c 100644 (file)
@@ -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;