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)
This commit is contained in:
Filip Tehlar 2020-09-10 03:37:37 +00:00 committed by Andrew Yourtchenko
parent 047eebfa97
commit 57b16c694c

View File

@ -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)