Skip to content

Commit

Permalink
bridge: Fix use-after-free in bridge_aa_refresh_queue().
Browse files Browse the repository at this point in the history
Found by LLVM scan-build.

Reported-by: Kevin Lo <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
Acked-by: Dennis Flynn <[email protected]>
  • Loading branch information
blp committed Apr 17, 2015
1 parent 577a811 commit 494356b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vswitchd/bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 494356b

Please sign in to comment.