]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
layer/iterate: revert some previous changes
authorGrigorii Demidov <grigorii.demidov@nic.cz>
Tue, 24 Jan 2017 19:23:15 +0000 (20:23 +0100)
committerGrigorii Demidov <grigorii.demidov@nic.cz>
Tue, 24 Jan 2017 19:23:15 +0000 (20:23 +0100)
lib/layer/iterate.c

index feb28ed35c7a2e6eb2b2d49bb87c337b22f44701..6aaa5a8b6f60eb3a552ea4944774438ff6a9a20f 100644 (file)
@@ -314,7 +314,7 @@ static int process_authority(knot_pkt_t *pkt, struct kr_request *req)
 
        /* Work around servers sending back CNAME with different delegation and no AA. */
        const knot_pktsection_t *an = knot_pkt_section(pkt, KNOT_ANSWER);
-       if (!knot_wire_get_aa(pkt->wire) && an->count > 0 && ns->count > 0) {
+       if (an->count > 0 && ns->count > 0) {
                const knot_rrset_t *rr = knot_pkt_rr(an, 0);
                if (rr->type == KNOT_RRTYPE_CNAME) {
                        return KR_STATE_CONSUME;