diff options
author | 2020-04-02 10:44:09 -0400 | |
---|---|---|
committer | 2020-08-13 10:39:40 +0000 | |
commit | fd24cea65c07fa404ebb480943fe9601939f14e8 (patch) | |
tree | ce4416fabf60ded561c7e3f5df1b80d1a861cb0d /src/vat/api_format.c | |
parent | 3c3d43b950778277a6733efedef39970bacf5c24 (diff) |
misc: fix static analysis warnings
One actual bugfix.
Type: fix
Ticket: VPP-1837
Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: Icef25167f97a70cc795c0a481174de319ed79ad5
(cherry picked from commit c35f3e835b4078fedabc1ff5013bc4727f533e16)
Diffstat (limited to 'src/vat/api_format.c')
-rw-r--r-- | src/vat/api_format.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vat/api_format.c b/src/vat/api_format.c index 1230ab5b059..c82c367cd5d 100644 --- a/src/vat/api_format.c +++ b/src/vat/api_format.c @@ -18741,7 +18741,7 @@ vl_api_mpls_fib_path_json_print (vat_json_node_t * node, clib_memcpy (&ip4, &fp->nh.address.ip4, sizeof (ip4)); vat_json_object_add_ip4 (node, "next_hop", ip4); } - else if (fp->proto == FIB_API_PATH_NH_PROTO_IP4) + else if (fp->proto == FIB_API_PATH_NH_PROTO_IP6) { clib_memcpy (&ip6, &fp->nh.address.ip6, sizeof (ip6)); vat_json_object_add_ip6 (node, "next_hop", ip6); |