]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
layer/rrcache: nitpick
authorGrigorii Demidov <grigorii.demidov@nic.cz>
Thu, 22 Dec 2016 08:13:14 +0000 (09:13 +0100)
committerOndřej Surý <ondrej@sury.org>
Wed, 11 Jan 2017 12:10:22 +0000 (13:10 +0100)
lib/layer/rrcache.c

index c7abfb8fbccc6d13074268e9f8aa4a0adbaba9c6..c84888af6659361c8406db8a615ac8c006604c64 100644 (file)
@@ -206,6 +206,7 @@ static int commit_rr(const char *key, void *val, void *data)
                }
        }
        if (baton->qry->flags & QUERY_DNSSEC_INSECURE && rank != KR_RANK_BAD) {
+               rank &= ~KR_RANK_SECURE;
                rank |= KR_RANK_INSECURE;
        }
        if (KEY_COVERING_RRSIG(key)) {