The _SAFE version of the iterator allows the user to free the iterator structure safely.
Signed-off-by: Adrian Moreno <amore...@redhat.com> --- vtep/vtep-ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vtep/vtep-ctl.c b/vtep/vtep-ctl.c index 99c4adcd5..685b0007a 100644 --- a/vtep/vtep-ctl.c +++ b/vtep/vtep-ctl.c @@ -738,7 +738,7 @@ del_ploc_from_mcast_mac(struct vtep_ctl_mcast_mac *mcast_mac, { struct vtep_ctl_ploc *ploc; - LIST_FOR_EACH (ploc, locators_node, &mcast_mac->locators) { + LIST_FOR_EACH_SAFE (ploc, locators_node, &mcast_mac->locators) { if (ploc->ploc_cfg == ploc_cfg) { ovs_list_remove(&ploc->locators_node); free(ploc); -- 2.34.1 _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev