Skip to content

Commit

Permalink
fsm: Proper subclass and superclass check in ni_ifcondition_type()
Browse files Browse the repository at this point in the history
  • Loading branch information
wipawel committed Jul 9, 2014
1 parent dcbeeb9 commit 2d190f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fsm-policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@ ni_ifcondition_type(xml_node_t *node)
static ni_bool_t
__ni_fsm_policy_match_class_check(const ni_ifcondition_t *cond, ni_ifworker_t *w)
{
return w->object && ni_dbus_object_isa(w->object, cond->args.class);
return w->object && ni_dbus_class_is_subclass(cond->args.class, w->object->class);
}

static ni_ifcondition_t *
Expand Down

0 comments on commit 2d190f2

Please sign in to comment.