]> git.ipfire.org Git - thirdparty/bind9.git/commit
detect when closest-encloser name is too long
authorEvan Hunt <each@isc.org>
Thu, 9 Jan 2025 02:08:05 +0000 (18:08 -0800)
committerEvan Hunt <each@isc.org>
Fri, 10 Jan 2025 01:04:08 +0000 (17:04 -0800)
commit232dac8cd596f91267c61c5743184c483e694b7a
tree54a840c3ab11c345cb5855c006926b23d7446da4
parent71e1c91695bacb39c649bf79b73d808e31fc5d9e
detect when closest-encloser name is too long

there was a database bug in which dns_db_find() could get a partial
match for the query name, but still set foundname to match the full
query name.  this triggered an assertion when query_addwildcardproof()
assumed that foundname would be shorter.

the database bug has been fixed, but in case it happens again, we
can just copy the name instead of splitting it. we will also log a
warning that the closest-encloser name was invalid.
lib/ns/query.c