diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2020-09-10 03:37:37 +0000 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2020-09-15 10:07:50 +0000 |
commit | 57b16c694cf5c52a9070c39eb931a1b5ea250b91 (patch) | |
tree | 88e0b9b32879f6c736da3676d0dae9fee7baafeb /src | |
parent | 047eebfa976eb8c8fc3162c3ccdd5683d23452dc (diff) |
ikev2: fix copy-paste error when freeing memory
Type: fix
Change-Id: If44c807d188b3e88d819f4132d73e6a34402a525
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
(cherry picked from commit 999395cd6644a297c01dd6de033cf1ffb4e9951b)
Diffstat (limited to 'src')
-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) |