2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

508. [func] dns_message_parse() can now do a best-effort

attempt, which should allow dig to print more invalid
                        messages.
This commit is contained in:
Brian Wellington
2000-10-06 18:58:30 +00:00
parent 4ed956c5c0
commit 6850cdd449
17 changed files with 143 additions and 95 deletions

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: zone.c,v 1.227 2000/10/05 06:39:21 marka Exp $ */
/* $Id: zone.c,v 1.228 2000/10/06 18:58:22 bwelling Exp $ */
#include <config.h>
@@ -2648,7 +2648,7 @@ stub_callback(isc_task_t *task, isc_event_t *event) {
if (result != ISC_R_SUCCESS)
goto next_master;
result = dns_request_getresponse(revent->request, msg, ISC_FALSE);
result = dns_request_getresponse(revent->request, msg, 0);
if (result != ISC_R_SUCCESS)
goto next_master;
@@ -2836,7 +2836,7 @@ refresh_callback(isc_task_t *task, isc_event_t *event) {
result = dns_message_create(zone->mctx, DNS_MESSAGE_INTENTPARSE, &msg);
if (result != ISC_R_SUCCESS)
goto next_master;
result = dns_request_getresponse(revent->request, msg, ISC_FALSE);
result = dns_request_getresponse(revent->request, msg, 0);
if (result != ISC_R_SUCCESS) {
zone_log(zone, me, ISC_LOG_INFO,
"failure in request to %s: %s",
@@ -4163,7 +4163,7 @@ notify_done(isc_task_t *task, isc_event_t *event) {
DNS_MESSAGE_INTENTPARSE, &message);
if (result == ISC_R_SUCCESS)
result = dns_request_getresponse(revent->request, message,
ISC_TRUE);
DNS_MESSAGEPARSE_PRESERVEORDER);
if (result == ISC_R_SUCCESS)
result = dns_rcode_totext(message->rcode, &buf);
if (result == ISC_R_SUCCESS)
@@ -4682,7 +4682,8 @@ forward_callback(isc_task_t *task, isc_event_t *event) {
if (result != ISC_R_SUCCESS)
goto next_master;
result = dns_request_getresponse(revent->request, msg, ISC_TRUE);
result = dns_request_getresponse(revent->request, msg,
DNS_MESSAGEPARSE_PRESERVEORDER);
if (result != ISC_R_SUCCESS)
goto next_master;