Skip to content

Commit

Permalink
fsm: ni_ifworker_match_netdev_name() doesn't check if device exists
Browse files Browse the repository at this point in the history
  • Loading branch information
wipawel committed Jul 9, 2014
1 parent 150b1d0 commit 9ccea48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,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 (child->device && ni_string_eq(child->name, ifname))
if (ni_string_eq(child->name, ifname))
return TRUE;
}

Expand Down

0 comments on commit 9ccea48

Please sign in to comment.