aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vnet/ipsec/ipsec_tun.c2
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,