summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2020-06-16 12:07:09 +0200
committerMatthew Smith <mgsmith@netgate.com>2020-06-17 00:44:54 +0000
commitae45d4789938ccd43a2967b528af3c5d4b6ee63e (patch)
tree7fabb54cc8d439d6682af2e45ee5ded9d11f8693
parent1af730d0dfbb91475c6808ed579494d3d223b724 (diff)
ip-neighbor: fix MLD hash key using stack pointer
Use pointed value (ipv6 address) as hash key instead of pointer value (pointer to ipv6 address on the stack). Type: fix Change-Id: I74a8b6d4bb552b5b344bcb50c8e830700c4ce739 Signed-off-by: Benoît Ganne <bganne@cisco.com>
-rw-r--r--src/vnet/ip6-nd/ip6_mld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/ip6-nd/ip6_mld.c b/src/vnet/ip6-nd/ip6_mld.c
index f1f5a68d33f..6e6a5cab45e 100644
--- a/src/vnet/ip6-nd/ip6_mld.c
+++ b/src/vnet/ip6-nd/ip6_mld.c
@@ -135,12 +135,12 @@ ip6_neighbor_del_mld_prefix (ip6_mld_t * imd, ip6_address_t * addr)
ip6_mldp_group_t *mcast_group_info;
uword *p;
- p = mhash_get (&imd->address_to_mldp_index, &addr);
+ p = mhash_get (&imd->address_to_mldp_index, addr);
mcast_group_info = p ? pool_elt_at_index (imd->mldp_group_pool, p[0]) : 0;
if (mcast_group_info)
{
- mhash_unset (&imd->address_to_mldp_index, &addr,
+ mhash_unset (&imd->address_to_mldp_index, addr,
/* old_value */ 0);
pool_put (imd->mldp_group_pool, mcast_group_info);
}