summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2017-11-01 18:19:22 -0700
committerFlorin Coras <fcoras@cisco.com>2017-11-01 18:19:22 -0700
commit62333be90895b6555a0469c6a5883a4908601b06 (patch)
tree9b49c23f68a687d274e3c0e1d8c9d2670658d239 /src/vnet
parentc6b2a206b6a27bd136adb856cf51828bf91d892d (diff)
session: fix proxy coverity warnings
Change-Id: I8d233d2301fb0da0fe27fa36ba870484bb290b7b Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/session/application.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/session/application.c b/src/vnet/session/application.c
index 6d8ae653074..c16b4dab057 100644
--- a/src/vnet/session/application.c
+++ b/src/vnet/session/application.c
@@ -558,10 +558,11 @@ application_start_stop_proxy_fib_proto (application_t * app, u8 fib_proto,
if (!ip_is_zero (&tc->lcl_ip, 1))
{
+ memset (&lcl_pref, 0, sizeof (lcl_pref));
ip_copy (&lcl_pref.fp_addr, &tc->lcl_ip, is_ip4);
lcl_pref.fp_len = is_ip4 ? 32 : 128;
lcl_pref.fp_proto = fib_proto;
- memset (&rmt_pref.fp_addr, 0, sizeof (rmt_pref.fp_addr));
+ memset (&rmt_pref, 0, sizeof (rmt_pref));
rmt_pref.fp_len = 0;
rmt_pref.fp_proto = fib_proto;