diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2019-10-18 22:24:41 +0000 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2019-11-03 19:49:07 +0000 |
commit | 5b055af741ab89cd3be7961ebd88a59dfc2c4969 (patch) | |
tree | 1bfbbbcd5e4f047b24eed588723e9885d93e366e /src/vnet/ipsec/ipsec_tun.c | |
parent | c07b9b68915aea1fbc35862db878a39c791a6435 (diff) |
ipsec: fix tunnel protection removal
Type: fix
Change-Id: I4d5546d1f9b3a162291997f6f0c094c5c3d6cf31
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
(cherry picked from commit 89b24950005914317c142149fa1ba8a167a978ca)
Diffstat (limited to 'src/vnet/ipsec/ipsec_tun.c')
-rw-r--r-- | src/vnet/ipsec/ipsec_tun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/ipsec/ipsec_tun.c b/src/vnet/ipsec/ipsec_tun.c index ad544a919db..7864cba08be 100644 --- a/src/vnet/ipsec/ipsec_tun.c +++ b/src/vnet/ipsec/ipsec_tun.c @@ -125,7 +125,7 @@ ipsec_tun_protect_db_remove (ipsec_main_t * im, .remote_ip = itp->itp_crypto.dst.ip4, .spi = clib_host_to_net_u32 (sa->spi), }; - hash_unset (im->tun4_protect_by_key, &key); + hash_unset (im->tun4_protect_by_key, key.as_u64); if (0 == hash_elts(im->tun4_protect_by_key)) udp_unregister_dst_port (vlib_get_main(), UDP_DST_PORT_ipsec, |