]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lib/rrcache: mark cached answers as authoritative
authorMarek Vavruša <marek.vavrusa@nic.cz>
Tue, 19 May 2015 15:54:38 +0000 (17:54 +0200)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Tue, 19 May 2015 15:54:38 +0000 (17:54 +0200)
lib/layer/rrcache.c

index 10cec2759db18688ba59e3dc230e16210173b033..ea885b6135df86d1dab8a726647766d35fa374b0 100644 (file)
@@ -118,6 +118,7 @@ static int peek(knot_layer_t *ctx, knot_pkt_t *pkt)
                qry->flags |= QUERY_CACHED;
                pkt->parsed = pkt->size;
                knot_wire_set_qr(pkt->wire);
+               knot_wire_set_aa(pkt->wire);
                return KNOT_STATE_DONE;
        }
        return ctx->state;