]> git.ipfire.org Git - thirdparty/bind9.git/commit
Pass empty string instead of NULL to ns_client_dumpmessage()
authorOndřej Surý <ondrej@isc.org>
Wed, 6 May 2026 08:12:35 +0000 (10:12 +0200)
committerOndřej Surý <ondrej@isc.org>
Thu, 7 May 2026 13:14:06 +0000 (15:14 +0200)
commit4d7e442c9aee72851f2b2d973273ebc92da42cf0
tree388bad7b3aad0a844045a894cb5a819ad992d8e3
parentbba70f08b1818f697e8292b79270a464279adc23
Pass empty string instead of NULL to ns_client_dumpmessage()

The two new call sites added by the CLASS-validation work passed NULL
as the reason, but ns_client_dumpmessage() bails out early on a NULL
reason — so the message dump never happened. The intent was to dump
the message and let the follow-up ns_client_log() carry the reason
text, so pass "" to suppress the prefix without short-circuiting the
dump.

(cherry picked from commit 8af39c360407a92ef31bf233b9df760d1bb9fb5f)
bin/named/client.c