]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolve: shorten code a bit
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 3 Jul 2022 21:11:00 +0000 (06:11 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 8 Jul 2022 20:20:09 +0000 (05:20 +0900)
src/resolve/resolved-mdns.c

index a311f54e44d5d4ec473d450fd047491627699301..0a66bccba3e69b89f01a8961bee5bd61ca4489bb 100644 (file)
@@ -207,10 +207,10 @@ static bool mdns_should_reply_using_unicast(DnsPacket *p) {
         }
 
         /* All the questions in the query had a QU bit set, RFC 6762, section 5.4 */
-        DNS_QUESTION_FOREACH_ITEM(item, p->question) {
+        DNS_QUESTION_FOREACH_ITEM(item, p->question)
                 if (!FLAGS_SET(item->flags, DNS_QUESTION_WANTS_UNICAST_REPLY))
                         return false;
-        }
+
         return true;
 }