bind/2574-Do-not-treat-a-referral-with-a-non-empty-ANSWER-sect.patch
songnannan e152f570a8 init
2019-12-28 09:41:34 +08:00

14 lines
547 B
Diff

--- a/lib/dns/resolver.c 2019-04-17 06:06:06.700000000 -0400
+++ b/lib/dns/resolver_1.c 2019-04-17 06:08:47.697000000 -0400
@@ -8419,7 +8419,9 @@ resquery_response(isc_task_t *task, isc_
if (result != ISC_R_SUCCESS)
FCTXTRACE3("noanswer_response", result);
}
- if (result != DNS_R_DELEGATION) {
+ if (result == DNS_R_DELEGATION) {
+ result = ISC_R_SUCCESS;
+ } else {
/*
* At this point, AA is not set, the response
* is not a referral, and the server is not a