]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lib/pktcache: mark cached respones as authoritative
authorMarek Vavruša <marek.vavrusa@nic.cz>
Thu, 28 May 2015 23:23:25 +0000 (01:23 +0200)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Thu, 28 May 2015 23:24:21 +0000 (01:24 +0200)
this fixes a bug when storing NODATA without SOA,NS or any other ‘authoritative answer’ hint

lib/layer/pktcache.c

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