aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qom/object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qom/object.c b/qom/object.c
index 864281ecec..d7974e9844 100644
--- a/qom/object.c
+++ b/qom/object.c
@@ -1806,7 +1806,7 @@ static void object_set_link_property(Object *obj, Visitor *v,
}
*child = new_target;
- if (prop->flags == OBJ_PROP_LINK_STRONG) {
+ if (prop->flags & OBJ_PROP_LINK_STRONG) {
object_ref(new_target);
object_unref(old_target);
}