mirror of
https://github.com/samba-team/samba.git
synced 2025-01-06 13:18:07 +03:00
CVE-2022-32746 s4/dsdb/tombstone_reanimate: Use LDB_FLAG_MOD_TYPE() for flags equality check
Now unrelated flags will no longer affect the result. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15009 Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
This commit is contained in:
parent
535b5a366a
commit
bedd0b768c
@ -104,7 +104,7 @@ static bool is_tombstone_reanimate_request(struct ldb_request *req,
|
||||
if (el_dn == NULL) {
|
||||
return false;
|
||||
}
|
||||
if (el_dn->flags != LDB_FLAG_MOD_REPLACE) {
|
||||
if (LDB_FLAG_MOD_TYPE(el_dn->flags) != LDB_FLAG_MOD_REPLACE) {
|
||||
return false;
|
||||
}
|
||||
if (el_dn->num_values != 1) {
|
||||
@ -117,7 +117,7 @@ static bool is_tombstone_reanimate_request(struct ldb_request *req,
|
||||
return false;
|
||||
}
|
||||
|
||||
if (el_deleted->flags != LDB_FLAG_MOD_DELETE) {
|
||||
if (LDB_FLAG_MOD_TYPE(el_deleted->flags) != LDB_FLAG_MOD_DELETE) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user