Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
9cd37fb
)
ipsec: fix coverity 249204
03/37003/2
author
Andrew Yourtchenko
<ayourtch@gmail.com>
Tue, 23 Aug 2022 17:09:25 +0000
(17:09 +0000)
committer
Fan Zhang
<roy.fan.zhang@intel.com>
Wed, 24 Aug 2022 09:08:32 +0000
(09:08 +0000)
Zero-initialize the temporary struct, else coverity complains about a bunch of uninitialized fields.
Type: fix
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Change-Id: I45dc42134f06917a7459d615804f978a175bec0f
src/vnet/ipsec/ipsec_api.c
patch
|
blob
|
history
diff --git
a/src/vnet/ipsec/ipsec_api.c
b/src/vnet/ipsec/ipsec_api.c
index
15f7bfa
..
767dc82
100644
(file)
--- a/
src/vnet/ipsec/ipsec_api.c
+++ b/
src/vnet/ipsec/ipsec_api.c
@@
-480,7
+480,7
@@
ipsec_sad_entry_add_v3 (const vl_api_ipsec_sad_entry_v3_t *entry,
ipsec_protocol_t proto;
ipsec_sa_flags_t flags;
u32 id, spi;
- tunnel_t tun;
+ tunnel_t tun
= { 0 }
;
int rv;
id = ntohl (entry->sad_id);