Skip to content

Commit

Permalink
Check locator kind when matching interface address
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Boasson <eb@ilities.com>
  • Loading branch information
eboasson committed Mar 19, 2024
1 parent 42f30ca commit b336a27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/ddsi/src/ddsi_endpoint.c
Expand Up @@ -233,7 +233,8 @@ static bool nwpart_includes_ssm_enabled_interfaces (const struct ddsi_domaingv *
for (const struct ddsi_networkpartition_address *a = np->uc_addresses; a; a = a->next)
{
for (int i = 0; i < gv->n_interfaces; i++)
if (memcmp (a->loc.address, gv->interfaces[i].loc.address, sizeof (a->loc.address)) == 0 &&
if (a->loc.kind == gv->interfaces[i].loc.kind &&
memcmp (a->loc.address, gv->interfaces[i].loc.address, sizeof (a->loc.address)) == 0 &&
(gv->interfaces[i].allow_multicast & DDSI_AMC_SSM))
return true;
}
Expand Down

0 comments on commit b336a27

Please sign in to comment.