]> git.ipfire.org Git - thirdparty/bind9.git/commit
Only log bumped signed serial after a successful secure zone update
authorMichał Kępień <michal@isc.org>
Fri, 16 Mar 2018 23:12:21 +0000 (00:12 +0100)
committerEvan Hunt <each@isc.org>
Tue, 24 Apr 2018 16:18:47 +0000 (09:18 -0700)
commitcfbc8e264d5a276fda2d1c0b15a4725cc293ba65
tree976035961059e201f7d58887ea7e42c166a97ace
parent498491555e578626a37380e8baf3ee0d48dff815
Only log bumped signed serial after a successful secure zone update

If a raw zone is modified, but the dns_update_signaturesinc() call in
receive_secure_serial() fails, the corresponding secure zone's database
will not be modified, even though by that time a message containing the
bumped signed serial will already have been logged.  This creates
confusion, because a different secure zone version will be served than
the one announced in the logs.  Move the relevant dns_zone_log() call so
that it is only performed if the secure zone's database is modified.
lib/dns/zone.c