summaryrefslogtreecommitdiffstats
path: root/src/plugins/vrrp/node.c
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2020-02-14 07:32:54 -0500
committerDave Barach <openvpp@barachs.net>2020-02-14 14:28:28 +0000
commita357a938019c8df2b061cc5bd14cd8a64fac694f (patch)
treefb32cc1a3e8030ae36d9d23998e0dcb87c5f3a9d /src/plugins/vrrp/node.c
parentac8bb9263438221cc93db62257ffd8db711530e2 (diff)
vrrp dns: fix coverity warnings
Type: fix Ticket: VPP-1837 Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: I0d164147173b452fee7e720e01e6a9991f43b64a
Diffstat (limited to 'src/plugins/vrrp/node.c')
-rw-r--r--src/plugins/vrrp/node.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/vrrp/node.c b/src/plugins/vrrp/node.c
index b819919e428..34d082ec2ff 100644
--- a/src/plugins/vrrp/node.c
+++ b/src/plugins/vrrp/node.c
@@ -617,7 +617,8 @@ vrrp_input_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
}
/* Mandatory - packet must be complete */
- if (b0->current_length < sizeof (*vrrp0) + vrrp0->n_addrs * addr_len)
+ if (b0->current_length < sizeof (*vrrp0) +
+ ((u32) vrrp0->n_addrs) * addr_len)
{
error0 = VRRP_ERROR_INCOMPLETE_PKT;
goto trace;