]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
dns scavenging: add an explanatory comment
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 14 Apr 2021 04:13:01 +0000 (16:13 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 20 Jun 2021 23:26:32 +0000 (23:26 +0000)
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 57078695cf98ac26c2e7d3dd0851234735a1ec4e..65cf552935cb835933b3ce62443f8d0f0469bcd9 100644 (file)
@@ -267,8 +267,11 @@ static NTSTATUS dns_tombstone_records_zone(TALLOC_CTX *mem_ctx,
                        }
                } else {
                        /*
-                        * Do not change the status of dnsTombstoned
-                        * if we found any live records
+                        * Do not change the status of dnsTombstoned if we
+                        * found any live records. If it exists, its value
+                        * will be the harmless "FALSE", which is what we end
+                        * up with when a tombstoned record is untombstoned.
+                        * (in dns_common_replace).
                         */
                        ldb_msg_remove_attr(new_msg,
                                            "dnsTombstoned");