Found by LLVM scan-build. Reported-by: Kevin Lo <ke...@freebsd.org> Signed-off-by: Ben Pfaff <b...@nicira.com> --- vswitchd/bridge.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index ea7d788..ee96f38 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -3920,12 +3920,12 @@ static void bridge_aa_refresh_queued(struct bridge *br) { struct ovs_list *list = xmalloc(sizeof *list); - struct bridge_aa_vlan *node; + struct bridge_aa_vlan *node, *next; list_init(list); ofproto_aa_vlan_get_queued(br->ofproto, list); - LIST_FOR_EACH(node, list_node, list) { + LIST_FOR_EACH_SAFE (node, next, list_node, list) { struct port *port; VLOG_INFO("ifname=%s, vlan=%u, oper=%u", node->port_name, node->vlan, -- 2.1.3 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev