2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

331. [bug] Only log "recursion denied" if RD is set. (RT #178)

This commit is contained in:
Mark Andrews
2000-07-14 02:26:22 +00:00
parent 10f4e9668a
commit 8d51d9e67e
2 changed files with 6 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
331. [bug] Only log "recursion denied" if RD is set. (RT #178)
330. [func] New function isc_log_wouldlog().
329. [func] omapi_auth_register() now takes a size_t argument for

View File

@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: client.c,v 1.99 2000/07/13 00:21:27 bwelling Exp $ */
/* $Id: client.c,v 1.100 2000/07/14 02:26:22 marka Exp $ */
#include <config.h>
@@ -816,6 +816,7 @@ client_request(isc_task_t *task, isc_event_t *event) {
dns_view_t *view;
dns_rdataset_t *opt;
isc_boolean_t ra; /* Recursion available. */
isc_boolean_t rd; /* Recursion desired. */
REQUIRE(event != NULL);
client = event->ev_arg;
@@ -1041,12 +1042,13 @@ client_request(isc_task_t *task, isc_event_t *event) {
* responses to ordinary queries.
*/
ra = ISC_FALSE;
rd = ISC_TF((client->message->flags & DNS_MESSAGEFLAG_RD) != 0);
if (client->view->resolver != NULL &&
client->view->recursion == ISC_TRUE &&
/* XXX this will log too much too early */
ns_client_checkacl(client, "recursion",
client->view->recursionacl,
ISC_TRUE, ISC_TRUE) == ISC_R_SUCCESS)
ISC_TRUE, rd) == ISC_R_SUCCESS)
ra = ISC_TRUE;
if (ra == ISC_TRUE)