mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 17:52:10 -04:00
[9.20] fix: dev: Pass empty string instead of NULL to ns_client_dumpmessage()
Pass "" instead of NULL to ns_client_dumpmessage() to get the log message printed. Backport of MR !1022 Merge branch 'backport-ondrej/fix-ns_client_dumpmessage-calls-9.20' into 'security-bind-9.20' See merge request isc-private/bind9!1023
This commit is contained in:
commit
e40dfdaedc
1 changed files with 2 additions and 2 deletions
|
|
@ -2097,7 +2097,7 @@ ns_client_request(isc_nmhandle_t *handle, isc_result_t eresult,
|
||||||
default:
|
default:
|
||||||
dns_rdataclass_format(client->message->rdclass, classbuf,
|
dns_rdataclass_format(client->message->rdclass, classbuf,
|
||||||
sizeof(classbuf));
|
sizeof(classbuf));
|
||||||
ns_client_dumpmessage(client, NULL);
|
ns_client_dumpmessage(client, "");
|
||||||
ns_client_log(client, NS_LOGCATEGORY_CLIENT,
|
ns_client_log(client, NS_LOGCATEGORY_CLIENT,
|
||||||
NS_LOGMODULE_CLIENT, ISC_LOG_DEBUG(1),
|
NS_LOGMODULE_CLIENT, ISC_LOG_DEBUG(1),
|
||||||
"invalid message class: %s", classbuf);
|
"invalid message class: %s", classbuf);
|
||||||
|
|
@ -2195,7 +2195,7 @@ ns_client_request_continue(void *arg) {
|
||||||
dns_rdataclass_format(client->message->rdclass,
|
dns_rdataclass_format(client->message->rdclass,
|
||||||
classname, sizeof(classname));
|
classname, sizeof(classname));
|
||||||
|
|
||||||
ns_client_dumpmessage(client, NULL);
|
ns_client_dumpmessage(client, "");
|
||||||
ns_client_log(client, NS_LOGCATEGORY_CLIENT,
|
ns_client_log(client, NS_LOGCATEGORY_CLIENT,
|
||||||
NS_LOGMODULE_CLIENT, ISC_LOG_DEBUG(1),
|
NS_LOGMODULE_CLIENT, ISC_LOG_DEBUG(1),
|
||||||
"no matching view in class '%s'",
|
"no matching view in class '%s'",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue