Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ovn-northd: Fix memory leak and incorrect limiting of ECMP routes.
If route count reaches UINT16_MAX, ecmp_groups_add_route() will leak the allocated route structure. Also, since group->route_count incremented unconditionally, next attempt to add new route will succeed, because the value of 'route_count' is zero now and out of sync with the real number of routes. Fixes: 4e53974 ("ovn-northd: Support ECMP routes.") Signed-off-by: Ilya Maximets <i.maximets@ovn.org> Acked-by: Mark Michelson <mmichels@redhat.com> Signed-off-by: Han Zhou <hzhou@ovn.org>
- Loading branch information