diff options
-rw-r--r-- | src/plugins/ikev2/ikev2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/ikev2/ikev2.c b/src/plugins/ikev2/ikev2.c index 57eea010109..34c54f3d848 100644 --- a/src/plugins/ikev2/ikev2.c +++ b/src/plugins/ikev2/ikev2.c @@ -318,7 +318,7 @@ ikev2_sa_free_all_vec (ikev2_sa_t * sa) vec_free (sa->r_id.data); vec_free (sa->i_auth.data); - if (sa->r_auth.key) + if (sa->i_auth.key) EVP_PKEY_free (sa->i_auth.key); vec_free (sa->r_auth.data); if (sa->r_auth.key) |