Skip to content

Commit

Permalink
policy: do not recurse child matches
Browse files Browse the repository at this point in the history
  • Loading branch information
mtomaschewski authored and wipawel committed Jun 30, 2015
1 parent 2f18300 commit 210e5da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/ifup.c
Expand Up @@ -95,8 +95,9 @@ __ni_ifup_generate_match(const char *name, ni_ifworker_t *w)
ni_ifworker_t *child = w->children.data[i];
xml_node_t *cnode;

cnode = __ni_ifup_generate_match(NI_NANNY_IFPOLICY_MATCH_COND_CHILD, child);
xml_node_add_child(or ,cnode);
cnode = xml_node_new(NI_NANNY_IFPOLICY_MATCH_COND_CHILD, or);
if (!cnode || !__ni_ifup_generate_match_dev(cnode, child))
goto error;
}
}

Expand Down

0 comments on commit 210e5da

Please sign in to comment.