3ce7d3
From 976b84dced599a74348834e11bcc3fec67a99387 Mon Sep 17 00:00:00 2001
964723
From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
964723
Date: Tue, 5 Dec 2017 16:33:08 +0100
964723
Subject: [PATCH] Fix bug #726120
964723
964723
---
964723
 bin/dig/dighost.c | 3 ++-
964723
 1 file changed, 2 insertions(+), 1 deletion(-)
964723
964723
diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c
3ce7d3
index 97ca54e71..eb66793a4 100644
964723
--- a/bin/dig/dighost.c
964723
+++ b/bin/dig/dighost.c
3ce7d3
@@ -4107,7 +4107,8 @@ recv_done(isc_task_t *task, isc_event_t *event) {
3ce7d3
 		}
964723
 	}
964723
 	if ((msg->rcode == dns_rcode_servfail && !l->servfail_stops) ||
964723
-	    (check_ra && (msg->flags & DNS_MESSAGEFLAG_RA) == 0 && l->recurse))
964723
+	    (check_ra && (msg->flags & DNS_MESSAGEFLAG_RA) == 0 &&
964723
+	     msg->rcode != dns_rcode_noerror && l->recurse))
964723
 	{
964723
 		dig_query_t *next = ISC_LIST_NEXT(query, link);
964723
 		if (l->current_query == query)
964723
-- 
3ce7d3
2.20.1
964723