ikev2: fix traffic selector match 62/23262/2
authorFilip Tehlar <ftehlar@cisco.com>
Wed, 23 Oct 2019 11:11:42 +0000 (11:11 +0000)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Fri, 15 Nov 2019 07:25:14 +0000 (07:25 +0000)
Type: fix

Change-Id: I81ab3dcd03f397b3d275da6cfa094e048ad92f95
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
(cherry picked from commit cb3cfe876b3bbe2f360e3b32a43a060bdcb8bf9e)

src/plugins/ikev2/ikev2.c

index e90f5a3..27b8704 100644 (file)
@@ -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;
           }
       }