964723
From 23c33ea76e916cc16e354faa218b6a0ca6385d00 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
964723
index 42a2fe2..3a066c6 100644
964723
--- a/bin/dig/dighost.c
964723
+++ b/bin/dig/dighost.c
964723
@@ -3416,7 +3416,8 @@ recv_done(isc_task_t *task, isc_event_t *event) {
964723
 		return;
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
-- 
964723
2.9.5
964723