]> git.ipfire.org Git - thirdparty/bind9.git/commit
fix possible NULL dereference in `cfg_map_findclause()`
authorColin Vidal <colin@isc.org>
Tue, 19 May 2026 13:04:11 +0000 (15:04 +0200)
committerColin Vidal <colin@isc.org>
Thu, 21 May 2026 14:04:01 +0000 (16:04 +0200)
commitd1c55d78c63dc7a32ce2bfd134711e1f710aa528
tree0b704b3b4b3f23bd186c2a1e363c646da1a4d713
parentb0f7bb3495f72e0c5d8b1fe792a5731554cc1172
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.
lib/isccfg/parser.c