summaryrefslogtreecommitdiffstats
path: root/src/plugins/ikev2/ikev2.c
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2020-03-07 20:55:59 +0000
committerDave Barach <openvpp@barachs.net>2020-03-12 11:30:45 +0000
commitf52420d507f0ff810f5146b7153781e313d7bc07 (patch)
treef51f263dde149aeb8be49be451950b379488ca6d /src/plugins/ikev2/ikev2.c
parent79bfd272546dd436a4d12f0ac98571194965dab0 (diff)
ikev2: fix udp encap
Type: fix Change-Id: I2c89accddf2307fa975b71e974d4091499f104ed Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/plugins/ikev2/ikev2.c')
-rw-r--r--src/plugins/ikev2/ikev2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/ikev2/ikev2.c b/src/plugins/ikev2/ikev2.c
index 03757c45ec3..2dd0819a485 100644
--- a/src/plugins/ikev2/ikev2.c
+++ b/src/plugins/ikev2/ikev2.c
@@ -1373,14 +1373,14 @@ ikev2_sa_auth (ikev2_sa_t * sa)
}
}
- if (sel_p)
- sa->udp_encap = sel_p->udp_encap;
-
vec_free(auth);
vec_free(psk);
}));
/* *INDENT-ON* */
+ if (sel_p)
+ sa->udp_encap = sel_p->udp_encap;
+
vec_free (authmsg);
if (sa->state == IKEV2_STATE_AUTHENTICATED)