summaryrefslogtreecommitdiffstats
path: root/src/vnet/dpo
diff options
context:
space:
mode:
authorNeale Ranns <neale.ranns@cisco.com>2018-03-19 02:32:57 -0700
committerChris Luke <chris_luke@comcast.com>2018-03-19 17:10:41 +0000
commit19bd1902cb8cc074470f1e178d1df0601f75f58b (patch)
tree17598f518775aed95225545fae360ab432175d6f /src/vnet/dpo
parent9a1f49ef30c6c07ce1254fa57a3d024f9b05f523 (diff)
Coverity found bugs in recent MPLS changes
Change-Id: I590945fdc1af53208c990a52bbecdc992fd27532 Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Diffstat (limited to 'src/vnet/dpo')
-rw-r--r--src/vnet/dpo/mpls_disposition.c2
-rw-r--r--src/vnet/dpo/mpls_label_dpo.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/dpo/mpls_disposition.c b/src/vnet/dpo/mpls_disposition.c
index 2956e541d57..66f74f9b29f 100644
--- a/src/vnet/dpo/mpls_disposition.c
+++ b/src/vnet/dpo/mpls_disposition.c
@@ -162,7 +162,7 @@ mpls_label_disposition_inline (vlib_main_t * vm,
{
if (FIB_MPLS_LSP_MODE_PIPE == mode)
error_node =
- vlib_node_get_runtime(vm, ip6_mpls_label_disposition_uniform_node.index);
+ vlib_node_get_runtime(vm, ip6_mpls_label_disposition_pipe_node.index);
else
error_node =
vlib_node_get_runtime(vm, ip6_mpls_label_disposition_uniform_node.index);
diff --git a/src/vnet/dpo/mpls_label_dpo.c b/src/vnet/dpo/mpls_label_dpo.c
index 954d637937b..ebbbbec9b64 100644
--- a/src/vnet/dpo/mpls_label_dpo.c
+++ b/src/vnet/dpo/mpls_label_dpo.c
@@ -639,7 +639,7 @@ mpls_label_imposition_inline (vlib_main_t * vm,
ASSERT(0 != vnet_buffer (b3)->mpls.ttl);
ttl3 = vnet_buffer(b3)->mpls.ttl - 1;
- exp3 = vnet_buffer(b0)->mpls.exp;
+ exp3 = vnet_buffer(b3)->mpls.exp;
hdr3 = mpls_label_paint_w_ttl_exp(b3, mld3, ttl3, exp3);
}
else