summaryrefslogtreecommitdiffstats
path: root/src/plugins/lb/api.c
diff options
context:
space:
mode:
authorVratko Polak <vrpolak@cisco.com>2023-04-18 15:16:25 +0200
committerBeno�t Ganne <bganne@cisco.com>2023-04-19 12:38:15 +0000
commit9339af358febb0bff744c7bf1e5b3ca2c416a3e9 (patch)
tree23440ce882d4259d67136de762684002d778a8a2 /src/plugins/lb/api.c
parentf00cb43190a7338ca400d165899da87f35b08208 (diff)
lb: initialize lb_vip_add_args_t
Previously, .src_ip_sticky may have been left uninitialized. Type: fix Fixes: 613e6dc0bf928def5d337312d522e1a15df87b00 Change-Id: Ifd866d6322fe9ff723f92b7ab3fd77e720a3cfa4 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'src/plugins/lb/api.c')
-rw-r--r--src/plugins/lb/api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lb/api.c b/src/plugins/lb/api.c
index 9ccd7b5d634..fe1d7e43d69 100644
--- a/src/plugins/lb/api.c
+++ b/src/plugins/lb/api.c
@@ -70,7 +70,7 @@ vl_api_lb_add_del_vip_t_handler
lb_main_t *lbm = &lb_main;
vl_api_lb_conf_reply_t * rmp;
int rv = 0;
- lb_vip_add_args_t args;
+ lb_vip_add_args_t args = {};
/* if port == 0, it means all-port VIP */
if (mp->port == 0)
@@ -133,7 +133,7 @@ vl_api_lb_add_del_vip_v2_t_handler (vl_api_lb_add_del_vip_v2_t *mp)
lb_main_t *lbm = &lb_main;
vl_api_lb_conf_reply_t *rmp;
int rv = 0;
- lb_vip_add_args_t args;
+ lb_vip_add_args_t args = {};
/* if port == 0, it means all-port VIP */
if (mp->port == 0)