summaryrefslogtreecommitdiffstats
path: root/vnet/vnet/ipsec/ikev2.c
diff options
context:
space:
mode:
Diffstat (limited to 'vnet/vnet/ipsec/ikev2.c')
-rw-r--r--vnet/vnet/ipsec/ikev2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vnet/vnet/ipsec/ikev2.c b/vnet/vnet/ipsec/ikev2.c
index af9d99dc44c..5a6c3674477 100644
--- a/vnet/vnet/ipsec/ikev2.c
+++ b/vnet/vnet/ipsec/ikev2.c
@@ -2055,6 +2055,7 @@ ikev2_set_profile_auth (vlib_main_t * vm, u8 * name, u8 auth_method,
if (auth_method == IKEV2_AUTH_METHOD_RSA_SIG)
{
+ vec_add1 (p->auth.data, 0);
if (p->auth.key)
EVP_PKEY_free (p->auth.key);
p->auth.key = ikev2_load_cert_file (auth_data);