summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-mdns.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-07-04 06:11:00 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-07-09 05:20:09 +0900
commitd3887b2b484004f6d5b393f57b01fe2eb917981f (patch)
treee97c3482d25b0b899a4e277286fdf33fea70a4d6 /src/resolve/resolved-mdns.c
parent87b91644dbc14d9cdf4c614a3ac2dd8c15733cf6 (diff)
downloadsystemd-d3887b2b484004f6d5b393f57b01fe2eb917981f.tar.gz
resolve: shorten code a bit
Diffstat (limited to 'src/resolve/resolved-mdns.c')
-rw-r--r--src/resolve/resolved-mdns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve/resolved-mdns.c b/src/resolve/resolved-mdns.c
index a311f54e44..0a66bccba3 100644
--- a/src/resolve/resolved-mdns.c
+++ b/src/resolve/resolved-mdns.c
@@ -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;
}