diff options
-rw-r--r-- | src/plugins/ikev2/ikev2.c | 6 |
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) |