summaryrefslogtreecommitdiff
path: root/community/bind/01-fix-forgotten-log.patch
blob: a9af283d59f5e3da073a2d6a8ae8dec6701734bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 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