PKGBUILDs/community/bind/01-fix-forgotten-log.patch

42 lines
1.4 KiB
Diff
Raw Normal View History

2014-06-13 11:09:37 +00:00
# https://lists.isc.org/pipermail/bind-users/2014-May/093124.html
From 73a2c0ec42c0915bde0275c81861f57645daf683 Mon Sep 17 00:00:00 2001
From: Tony Finch <dot@dotat.at>
Date: Thu, 28 Nov 2013 17:23:57 +0000
Subject: [PATCH] Disable XXXMPA verbose packet logging in EDNS fallback code.
---
lib/dns/resolver.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c
index 11c805f..e50071e 100644
--- a/lib/dns/resolver.c
+++ b/lib/dns/resolver.c
@@ -7339,9 +7339,11 @@ resquery_response(isc_task_t *task, isc_event_t *event) {
sizeof(addrbuf));
snprintf(buf, sizeof(buf), "received packet from %s "
"(bad edns):\n", addrbuf);
+/*
dns_message_logpacket(message, buf,
DNS_LOGCATEGORY_RESOLVER, DNS_LOGMODULE_RESOLVER,
ISC_LOG_NOTICE, fctx->res->mctx);
+*/
dns_adb_changeflags(fctx->adb, query->addrinfo,
DNS_FETCHOPT_NOEDNS0,
DNS_FETCHOPT_NOEDNS0);
@@ -7369,9 +7371,11 @@ resquery_response(isc_task_t *task, isc_event_t *event) {
sizeof(addrbuf));
snprintf(buf, sizeof(buf), "received packet from %s (no opt):\n",
addrbuf);
+/*
dns_message_logpacket(message, buf,
DNS_LOGCATEGORY_RESOLVER, DNS_LOGMODULE_RESOLVER,
ISC_LOG_NOTICE, fctx->res->mctx);
+*/
dns_adb_changeflags(fctx->adb, query->addrinfo,
DNS_FETCHOPT_NOEDNS0,
DNS_FETCHOPT_NOEDNS0);
--
1.9.1