mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 19:29:59 -04:00
3862. [cleanup] Return immediately if we are not going to log the
message in ns_client_dumpmessage.
This commit is contained in:
parent
06ee28c48c
commit
9b819daddf
2 changed files with 6 additions and 0 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,3 +1,6 @@
|
|||
3862. [cleanup] Return immediately if we are not going to log the
|
||||
message in ns_client_dumpmessage.
|
||||
|
||||
3861. [security] Missing isc_buffer_availablelength check results
|
||||
in a REQUIRE assertion when printing out a packet
|
||||
(CVE-2014-3859). [RT #36078]
|
||||
|
|
|
|||
|
|
@ -3198,6 +3198,9 @@ ns_client_dumpmessage(ns_client_t *client, const char *reason) {
|
|||
int len = 1024;
|
||||
isc_result_t result;
|
||||
|
||||
if (!isc_log_wouldlog(ns_g_lctx, ISC_LOG_DEBUG(1)))
|
||||
return;
|
||||
|
||||
/*
|
||||
* Note that these are multiline debug messages. We want a newline
|
||||
* to appear in the log after each message.
|
||||
|
|
|
|||
Loading…
Reference in a new issue