]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolved: use DNS_ANSWER_MASK_SECTIONS where appropriate
authorLennart Poettering <lennart@poettering.net>
Mon, 15 Mar 2021 20:36:42 +0000 (21:36 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 15 Mar 2021 22:41:25 +0000 (23:41 +0100)
src/resolve/resolved-dns-stub.c

index 8e781dd7389872a8f7299484b7d8e4d4c215ad7c..f8d4767e536a0368106ba73e6ba41aaa270ddb6c 100644 (file)
@@ -275,7 +275,7 @@ static int dns_stub_collect_answer_by_section(
                     dns_type_is_dnssec(item->rr->key->type))
                         continue;
 
-                if (((item->flags ^ section) & (DNS_ANSWER_SECTION_ANSWER|DNS_ANSWER_SECTION_AUTHORITY|DNS_ANSWER_SECTION_ADDITIONAL)) != 0)
+                if (((item->flags ^ section) & DNS_ANSWER_MASK_SECTIONS) != 0)
                         continue;
 
                 r = reply_add_with_rrsig(