aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/ikev2/ikev2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/ikev2/ikev2.c b/src/plugins/ikev2/ikev2.c
index d6988704b49..64d5273af68 100644
--- a/src/plugins/ikev2/ikev2.c
+++ b/src/plugins/ikev2/ikev2.c
@@ -1308,7 +1308,7 @@ ikev2_sa_match_ts (ikev2_sa_t * sa)
{
if (ikev2_ts_cmp(p_tsi, ts))
{
- tsi = vec_dup(ts);
+ vec_add1 (tsi, ts[0]);
break;
}
}
@@ -1317,7 +1317,7 @@ ikev2_sa_match_ts (ikev2_sa_t * sa)
{
if (ikev2_ts_cmp(p_tsr, ts))
{
- tsr = vec_dup(ts);
+ vec_add1 (tsr, ts[0]);
break;
}
}