Skip to content

Commit

Permalink
policy: Match name against existing devices
Browse files Browse the repository at this point in the history
  • Loading branch information
wipawel committed Jun 6, 2014
1 parent 522022b commit 114ef5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fsm.c
Expand Up @@ -661,7 +661,7 @@ ni_ifworker_match_netdev_name(const ni_ifworker_t *w, const char *ifname)
for (i = 0; i < w->children.count; i++) {
ni_ifworker_t *child = w->children.data[i];

if (ni_string_eq(child->name, ifname))
if (child->device && ni_string_eq(child->name, ifname))
return TRUE;
}

Expand Down

0 comments on commit 114ef5d

Please sign in to comment.