resolved: count unsupported dnssec algorithm as indeterminate RRset
authorLennart Poettering <lennart@poettering.net>
Tue, 5 Jan 2016 23:57:21 +0000 (00:57 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 5 Jan 2016 23:57:24 +0000 (00:57 +0100)
After all, when we don't support the algorithm we cannot determine
validity.

src/resolve/resolved-dns-transaction.c

index 7212fb9..8631afa 100644 (file)
@@ -2404,10 +2404,9 @@ int dns_transaction_validate_dnssec(DnsTransaction *t) {
                                 if (IN_SET(result,
                                            DNSSEC_INVALID,
                                            DNSSEC_SIGNATURE_EXPIRED,
-                                           DNSSEC_NO_SIGNATURE,
-                                           DNSSEC_UNSUPPORTED_ALGORITHM))
+                                           DNSSEC_NO_SIGNATURE))
                                         t->scope->manager->n_dnssec_bogus++;
-                                else
+                                else /* DNSSEC_MISSING_KEY or DNSSEC_UNSUPPORTED_ALGORITHM */
                                         t->scope->manager->n_dnssec_indeterminate++;
 
                                 r = dns_transaction_is_primary_response(t, rr);