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