summaryrefslogtreecommitdiffstats
path: root/src/plugins/ikev2/ikev2.c
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2020-10-30 05:28:11 +0000
committerBeno�t Ganne <bganne@cisco.com>2020-11-04 08:07:55 +0000
commit68ad6258374201ba8f0dc052e6f44d6250555249 (patch)
tree3b984145b8b4fcf9750adcd6f6298b7c3bcfe20a /src/plugins/ikev2/ikev2.c
parent761f8f0eaaf43f38fdd9d160ba19ff833de7d210 (diff)
ikev2: fix reply during rekey
Type: fix Change-Id: If87f4b8ae92508215fe91178958fe2ddb91e5a35 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/plugins/ikev2/ikev2.c')
-rw-r--r--src/plugins/ikev2/ikev2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/ikev2/ikev2.c b/src/plugins/ikev2/ikev2.c
index 5103da0486c..ae48b44f36b 100644
--- a/src/plugins/ikev2/ikev2.c
+++ b/src/plugins/ikev2/ikev2.c
@@ -3155,7 +3155,7 @@ ikev2_node_internal (vlib_main_t * vm,
ikev2_create_tunnel_interface (vm, sa0, child, p[0],
child - sa0->childs, 1);
}
- if (sa0->is_initiator)
+ if (ike_hdr_is_response (ike0))
{
vec_free (sa0->rekey);
}