diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2019-10-18 22:24:41 +0000 |
---|---|---|
committer | Filip Tehlar <ftehlar@cisco.com> | 2019-10-18 22:24:41 +0000 |
commit | 89b24950005914317c142149fa1ba8a167a978ca (patch) | |
tree | 499e75337414e94865b76a4d50e890db6a71e81f /src/vnet/ipsec/ipsec_tun.c | |
parent | 2f71a888993dc9ee958f174d2e456221d7005f60 (diff) |
ipsec: fix tunnel protection removal
Type: fix
Change-Id: I4d5546d1f9b3a162291997f6f0c094c5c3d6cf31
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
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, |