ikev2: fix wrong index computation
Type: fix Change-Id: Ia7b07b4ec9e5681946f3f5c01c230c1f814e2cf6 Signed-off-by: Filip Tehlar <ftehlar@cisco.com> (cherry picked from commit c17d6cfaf4fc66927f28af9d8d7cb8ce2a1d839c)
This commit is contained in:
Filip Tehlar
committed by
Andrew Yourtchenko
parent
f77f8e2909
commit
c8b09a2d40
@ -3000,7 +3000,7 @@ ikev2_initiate_sa_init (vlib_main_t * vm, u8 * name)
|
||||
ikev2_sa_free_proposal_vector (&proposals);
|
||||
|
||||
sa.is_initiator = 1;
|
||||
sa.profile_index = km->profiles - p;
|
||||
sa.profile_index = p - km->profiles;
|
||||
sa.is_profile_index_set = 1;
|
||||
sa.state = IKEV2_STATE_SA_INIT;
|
||||
ikev2_generate_sa_init_data (&sa);
|
||||
|
Reference in New Issue
Block a user