aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorKingwel Xie <kingwel.xie@ericsson.com>2019-03-19 07:57:52 -0400
committerDamjan Marion <dmarion@me.com>2019-03-20 16:36:18 +0000
commitc372dc2190f2376f9b816f71120354fd53732fa7 (patch)
tree9e10f9ce794317219b99f70ac2c1dbd0e76da723 /src/vnet
parent5fc939eea932efbdc7952537857bfc7fff02a950 (diff)
ipsec: bug fix ipsec-init sequence
ipsec_tunnel_if_init might be called before ipsec_init this memset in ipsec-init therefore zero the memory allocated by ipsec_tunnel_if_init Change-Id: Ie889f1bf624c76842ef77e5a51ed1d41fed4758d Signed-off-by: Kingwel Xie <kingwel.xie@ericsson.com>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/ipsec/ipsec.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/vnet/ipsec/ipsec.c b/src/vnet/ipsec/ipsec.c
index e9d13a4e717..ac9e139fd85 100644
--- a/src/vnet/ipsec/ipsec.c
+++ b/src/vnet/ipsec/ipsec.c
@@ -224,8 +224,6 @@ ipsec_init (vlib_main_t * vm)
ipsec_main_t *im = &ipsec_main;
ipsec_main_crypto_alg_t *a;
- clib_memset (im, 0, sizeof (im[0]));
-
im->vnet_main = vnet_get_main ();
im->vlib_main = vm;