]> git.ipfire.org Git - thirdparty/bind9.git/commit
fix: dev: fix possible NULL dereference in `cfg_map_findclause()`
authorColin Vidal <colin@isc.org>
Thu, 21 May 2026 14:04:17 +0000 (16:04 +0200)
committerColin Vidal <colin@isc.org>
Thu, 21 May 2026 14:04:17 +0000 (16:04 +0200)
commitd312d16bfd7643aa8458d61618a630b97f8edf49
treebae42e746a90622a628bf91250ae2c522b366d58
parent86029384e28dad054062a3b2f3c522b299f56c91
parent3594b0ff7a3256ae05c0edeaa182f8cd380723b4
fix: dev: fix possible NULL dereference in `cfg_map_findclause()`

`cfg_map_findclause()` did not check whether a clause existed before dereferencing it, which could lead to a NULL dereference. Add the missing check to prevent this.

In practice, this was not triggering any known bug, since `cfg_map_findclause()` is only called in contexts where the clause is known to exist.

Closes #5997

Merge branch '5997-findclause' into 'main'

See merge request isc-projects/bind9!12052