]> git.ipfire.org Git - thirdparty/bind9.git/commit
log that a zone is expired after setting the flag
authorColin Vidal <colin@isc.org>
Mon, 3 Nov 2025 16:31:26 +0000 (17:31 +0100)
committerColin Vidal <colin@isc.org>
Mon, 3 Nov 2025 16:34:25 +0000 (17:34 +0100)
commite4851fcdb7d8de44857c722fd852b740290583f5
tree90ee4b87f91562a12abded1f750cf080377479b2
parent082e1aa83444aad446ae1fe21bb463c052074fcb
log that a zone is expired after setting the flag

When a (secondary) zone is expired, the log message `<zone> expired` is
printed and the flag `DNS_ZONEFLG_EXPIRED` is set. Change the order by
setting the expired flag first, then printing the log.

This should fixes (rare but persistent) timing-related CI error when the
EDE 24 tests expect the zone to be expired (from the log) and
immediately after request and expect an EDE 24 error. (In some rare
cases, the server was still answering the response).
lib/dns/zone.c