IPSEC_AH: broken initialization (VPP-1208) 51/11351/1
authorMarco Varlese <[email protected]>
Fri, 23 Mar 2018 12:32:50 +0000 (13:32 +0100)
committerMarco Varlese <[email protected]>
Mon, 26 Mar 2018 06:04:56 +0000 (06:04 +0000)
commite5454577961aabfec124f19dc9264897927716f5
tree7a5bd60092477f60ba74009d27ea29dcfe31833e
parentae389bc4a10180aa35010725d525fc440da6f67e
IPSEC_AH: broken initialization (VPP-1208)

The init-path for IPSEC_AH where the CTX gets initialized is broken
since the for-loop never executes due to the wrong usage of
tm->n_vlib_mains which being subtracted by 1.

Change-Id: I4d967f52cd3ca061aa60d824d65f446e06162403
Signed-off-by: Marco Varlese <[email protected]>
(cherry picked from commit 4631610a20e6ae3181cb517db27a93b2a3e07eff)
src/vnet/ipsec/esp.h