aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/ikev2
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2019-10-23 11:11:42 +0000
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-11-15 07:25:14 +0000
commitdea724f7968ab56f188d8389691d4966a7969468 (patch)
tree2f117d90bdf0a5adf61d62593787d0245040b3cc /src/plugins/ikev2
parent066ebabc5a293b5ba70e506e8fd92c7f891ed9c2 (diff)
ikev2: fix traffic selector match
Type: fix Change-Id: I81ab3dcd03f397b3d275da6cfa094e048ad92f95 Signed-off-by: Filip Tehlar <ftehlar@cisco.com> (cherry picked from commit cb3cfe876b3bbe2f360e3b32a43a060bdcb8bf9e)
Diffstat (limited to 'src/plugins/ikev2')
-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 e90f5a3bd3b..27b8704539a 100644
--- a/src/plugins/ikev2/ikev2.c
+++ b/src/plugins/ikev2/ikev2.c
@@ -1275,7 +1275,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;
}
}
@@ -1284,7 +1284,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;
}
}