summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2019-03-30 01:22:12 +0000
committerflorian <florian@openbsd.org>2019-03-30 01:22:12 +0000
commit1e9fd7ad1de4e11de2df37ff2195e73777c2ee1a (patch)
tree7f8f3c5d74156a9d5b231b30dd49215a1013c123
parentUpdate to nsd 4.1.27 (diff)
downloadwireguard-openbsd-1e9fd7ad1de4e11de2df37ff2195e73777c2ee1a.tar.xz
wireguard-openbsd-1e9fd7ad1de4e11de2df37ff2195e73777c2ee1a.zip
Disable
- Deny ANY with only one RR in response, by default. Patch from Daisuke Higashi. The deny-any statement in nsd.conf sets ANY queries over UDP to be further moved to TCP as well. Also no additional section processig for type ANY, reducing the response size. with an ifdef NOTYET. It is too close to release and we want to let this sit for a bit. Pointed out / requested by sthen.
-rw-r--r--usr.sbin/nsd/query.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/nsd/query.c b/usr.sbin/nsd/query.c
index e2a56e9aea0..e3b5fe6e9c8 100644
--- a/usr.sbin/nsd/query.c
+++ b/usr.sbin/nsd/query.c
@@ -970,9 +970,11 @@ answer_domain(struct nsd* nsd, struct query *q, answer_type *answer,
{
add_rrset(q, answer, ANSWER_SECTION, domain, rrset);
++added;
+#ifdef NOTYET
/* minimize response size with one RR,
* according to RFC 8482(4.1). */
break;
+#endif
}
}
if (added == 0) {