We now check for DSDB_RMD_FLAG_DELETED, as we'll check for
DSDB_RMD_FLAG_HIDDEN_BL in the next step and it's better to
call dsdb_dn_val_rmd_flags() just once.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12967
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
struct dsdb_dn *dsdb_dn = NULL;
struct ldb_val *plain_dn = &msg->elements[i].values[j];
bool is_deleted_objects = false;
+ uint32_t rmd_flags;
/* this is a fast method for detecting deleted
linked attributes, working on the unparsed
ldb_val */
- if (dsdb_dn_is_deleted_val(plain_dn) && !have_reveal_control) {
+ rmd_flags = dsdb_dn_val_rmd_flags(plain_dn);
+ if (rmd_flags & DSDB_RMD_FLAG_DELETED && !have_reveal_control) {
/* it's a deleted linked attribute,
and we don't have the reveal control */
/* we won't keep this one, so not incrementing k */