aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2019-10-23 11:11:42 +0000
committerDamjan Marion <dmarion@me.com>2019-11-04 14:03:18 +0000
commitcb3cfe876b3bbe2f360e3b32a43a060bdcb8bf9e (patch)
tree75ad75aad3e3ea550d047e5ebe1537362f96fa62 /src/plugins
parenta519f213f45e79383bac6baa332c4607e65604bb (diff)
ikev2: fix traffic selector match
Type: fix Change-Id: I81ab3dcd03f397b3d275da6cfa094e048ad92f95 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/plugins')
-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;
}
}