]> git.ipfire.org Git - thirdparty/samba.git/commit
dns scavenging: tombstone deletion uses correct time units
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Sat, 5 Jun 2021 06:04:55 +0000 (18:04 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 20 Jun 2021 23:26:32 +0000 (23:26 +0000)
commitdbfbbd429766c1c8a161b8950fbed98c5cfbcc16
tree2c98f8bc604200aa4902a5da3e0f1021cac8d4a3
parentbdd755a6795eec20f2ef5b91d7d9dfa4173f8aa3
dns scavenging: tombstone deletion uses correct time units

Before we were comparing hours to 1e-7 second units.

Now we do it both ways. That's because in dns_tombstone_records (in
this same file) we have been putting hour timestamps in EntombedTime,
but this field is supposed to have NTTIME timestamps, and those
timestamps won't have updated themselves.

This wouldn't matter much in pure Samba networks if we weren't also
using the correct timestamp in dns_common_replace().

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