]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix strict weak ordering violation in resign_sooner()
authorAlessio Podda <alessio@isc.org>
Thu, 16 Apr 2026 11:21:04 +0000 (13:21 +0200)
committerAlessio Podda <alessio@isc.org>
Fri, 17 Apr 2026 12:31:15 +0000 (14:31 +0200)
commitc7a167c7393fa0672ca6f06187c473dbe0bf5a42
tree25073e4bfe1dcaf36a891a9be77b54d17198a3a6
parent87b1f52fd411f86130f143a1caafb47a42aca190
Fix strict weak ordering violation in resign_sooner()

resign_sooner_values() only checked whether rhs was SOA-typed when
resign times were equal, but did not check lhs. When both entries were
SOA-typed with equal resign times, the comparison returned true in both
directions, violating irreflexivity and corrupting heap invariants.

Add lhs_typepair parameter and require lhs to be non-SOA for the
tie-breaking logic to apply.
lib/dns/qpzone.c
tests/dns/qpzone_test.c