Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
northd.c: Validate port type to avoid unexpected behavior.
In ovn_igmp_group_get_ports(), it accesses a union member that should exist only if the port is a LSP: port->peer->od->mcast_info.rtr.relay. But in theory it is possible that the "port" is in fact a LRP, because it is a result of ovn_port_find() with the port name coming from a SB DB entry. So it is better to validate that first. Signed-off-by: Han Zhou <hzhou@ovn.org> Acked-by: Dumitru Ceara <dceara@redhat.com> (cherry picked from commit e71873b)
- Loading branch information