From e45dd9fff84d3da66175555cbe06169631cf53f7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marek=20Vavru=C5=A1a?= <marek.vavrusa@nic.cz>
Date: Tue, 20 Jan 2015 00:16:39 +0100
Subject: [PATCH] resolve: clear AA, set RA

---
 lib/resolve.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/resolve.c b/lib/resolve.c
index 91e6c48bc..97316cf22 100755
--- a/lib/resolve.c
+++ b/lib/resolve.c
@@ -132,6 +132,10 @@ int kr_resolve(struct kr_context* ctx, knot_pkt_t *answer,
 
 	knot_requestor_clear(&requestor);
 
+	/* Check flags. */
+	knot_wire_clear_aa(answer->wire);
+	knot_wire_set_ra(answer->wire);
+
 	/* Resolution success, commit cache transaction. */
 	if (ret == KNOT_EOK) {
 		kr_rplan_txn_commit(&rplan);
-- 
GitLab