]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
dns scavenging: avoid setting same flags twice
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Mon, 29 Mar 2021 00:10:50 +0000 (13:10 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 20 Jun 2021 23:26:32 +0000 (23:26 +0000)
We already did this with db_msg_add_empty(), ~20 lines up.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/kcc/scavenge_dns_records.c

index 4ff46196d79ffee309ec56eeeecae3e937643d49..c64580717c91e4ed1a202f13908346d1bc3afadd 100644 (file)
@@ -229,8 +229,6 @@ NTSTATUS dns_tombstone_records_zone(TALLOC_CTX *mem_ctx,
                        continue;
                }
 
-               el->flags = LDB_FLAG_MOD_ADD;
-
                /* If everything was expired, we tombstone the node. */
                if (el->num_values == 0) {
                        el->values = tombstone_blob;