Last active
April 9, 2017 20:35
-
-
Save hdais/25cb3fc86335026d40f0 to your computer and use it in GitHub Desktop.
NSD4 refuse-ANY-query patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- nsd-4.1.7/query.c 2015-11-18 17:50:05.000000000 +0900 | |
| +++ nsd-4.1.7-refuse-any/query.c 2016-04-09 03:34:09.312740769 +0900 | |
| @@ -677,7 +677,7 @@ | |
| assert(query); | |
| /* Currently, only troublesome for DNSKEY and DS, | |
| * cuz their RRSETs are quite large. */ | |
| - return (query->qtype != TYPE_DNSKEY && query->qtype != TYPE_DS); | |
| + return (query->qtype != TYPE_DNSKEY && query->qtype != TYPE_DS && query->qtype != TYPE_ANY); | |
| } | |
| static int | |
| @@ -930,6 +930,7 @@ | |
| { | |
| add_rrset(q, answer, ANSWER_SECTION, domain, rrset); | |
| ++added; | |
| + break; | |
| } | |
| } | |
| if (added == 0) { |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
w/ patch
w/o patch