aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/srv6-mobile
diff options
context:
space:
mode:
authorTetsuya Murakami <tetsuya.mrk@gmail.com>2022-01-18 03:43:07 -0800
committerOle Tr�an <otroan@employees.org>2022-01-18 13:52:59 +0000
commit646c6e09251f80b9ec8399df0090119d3d09802a (patch)
tree7e766a1d104c0800a04065401b795b98f7347998 /src/plugins/srv6-mobile
parent1cd0e5dd533f4209dde453eaa43215e52cd42985 (diff)
srv6-mobile: Fix the coverity issue
Type: fix Signed-off-by: Tetsuya Murakami <tetsuya.mrk@gmail.com> Change-Id: I35c36401ce3ab59900be59a9abddba66f6399978
Diffstat (limited to 'src/plugins/srv6-mobile')
-rw-r--r--src/plugins/srv6-mobile/node.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/srv6-mobile/node.c b/src/plugins/srv6-mobile/node.c
index 36445a683c0..ed0697a8009 100644
--- a/src/plugins/srv6-mobile/node.c
+++ b/src/plugins/srv6-mobile/node.c
@@ -664,9 +664,9 @@ VLIB_NODE_FN (srv6_end_m_gtp4_e)
srv6_end_rewrite_trace_t *tr =
vlib_add_trace (vm, node, b0, sizeof (*tr));
clib_memcpy (tr->src.as_u8, hdr0->ip4.src_address.as_u8,
- sizeof (tr->src.as_u8));
+ sizeof (hdr0->ip4.src_address.as_u8));
clib_memcpy (tr->dst.as_u8, hdr0->ip4.dst_address.as_u8,
- sizeof (tr->dst.as_u8));
+ sizeof (hdr0->ip4.dst_address.as_u8));
tr->teid = hdr0->gtpu.teid;
}
}