]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix: dev: Check if logconfig is NULL before using it in isc_log_doit()
authorArаm Sаrgsyаn <aram@isc.org>
Thu, 15 Aug 2024 12:55:28 +0000 (12:55 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Thu, 15 Aug 2024 12:55:28 +0000 (12:55 +0000)
Check if 'lctx->logconfig' is NULL before using it in isc_log_doit(),
because it's possible that isc_log_destroy() was already called, e.g.
when a 'call_rcu' function wants to log a message during shutdown.

Closes #4842

Merge branch '4842-shutdown-crash-in-isc_log_doit' into 'main'

Closes #4842

See merge request isc-projects/bind9!9297


Trivial merge