From: Grigorii Demidov Date: Mon, 5 Jun 2017 11:06:05 +0000 (+0200) Subject: lib/validate: cleanup (commented code block was deleted) X-Git-Tag: v1.3.0~5^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1174b42d05fdea0faf53f5283a26eec4e1fb46d3;p=thirdparty%2Fknot-resolver.git lib/validate: cleanup (commented code block was deleted) --- diff --git a/lib/layer/validate.c b/lib/layer/validate.c index bd6ef5581..308777f12 100644 --- a/lib/layer/validate.c +++ b/lib/layer/validate.c @@ -350,12 +350,7 @@ static int update_delegation(struct kr_request *req, struct kr_query *qry, knot_ const bool referral = !knot_wire_get_aa(answer->wire); if (referral) { section = KNOT_AUTHORITY; - } /* else if { - Not referral, but RCODE is NXDOMAIN. - * Since we are here NXDOMAIN is proved above, - * so do nothing and exit. - return kr_ok(); - } */ else if (knot_pkt_qtype(answer) == KNOT_RRTYPE_DS && + } else if (knot_pkt_qtype(answer) == KNOT_RRTYPE_DS && !(qry->flags & QUERY_CNAME) && (knot_wire_get_rcode(answer->wire) != KNOT_RCODE_NXDOMAIN)) { section = KNOT_ANSWER;