summaryrefslogtreecommitdiffstats
path: root/lib/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/object.c')
-rw-r--r--lib/object.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/object.c b/lib/object.c
index 46d8141..d881ac9 100644
--- a/lib/object.c
+++ b/lib/object.c
@@ -265,6 +265,8 @@ int nl_object_identical(struct nl_object *a, struct nl_object *b)
return 0;
req_attrs = ops->oo_id_attrs;
+ if (req_attrs == ~0)
+ req_attrs = a->ce_mask & b->ce_mask;
/* Both objects must provide all required attributes to uniquely
* identify an object */