summaryrefslogtreecommitdiffstats
path: root/src/plugins/srv6-mobile/node.c
diff options
context:
space:
mode:
authorTetsuya Murakami <tetsuya.mrk@gmail.com>2021-02-25 10:47:58 -0800
committerTetsuya Murakami <tetsuya.mrk@gmail.com>2021-02-25 10:47:58 -0800
commit9a804df98b37b533d3f986e31f2ee99592ef3af4 (patch)
tree6ac0871b3099298eff866f6630d0e63142cdda89 /src/plugins/srv6-mobile/node.c
parent8c609af230c157304c3ddb09bfcd6d8098c6ea92 (diff)
sr: Fix the coverity issue on srv6-mobile plugin
Type: fix Signed-off-by: Tetsuya Murakami <tetsuya.mrk@gmail.com> Change-Id: I55e6d7dd193f83f70d27e27fe2e383939d677ef1
Diffstat (limited to 'src/plugins/srv6-mobile/node.c')
-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 fd11c07e8a7..448d6332b15 100644
--- a/src/plugins/srv6-mobile/node.c
+++ b/src/plugins/srv6-mobile/node.c
@@ -655,9 +655,9 @@ VLIB_NODE_FN (srv6_end_m_gtp4_e) (vlib_main_t * vm,
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;
}
}