From d3887b2b484004f6d5b393f57b01fe2eb917981f Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 4 Jul 2022 06:11:00 +0900 Subject: [PATCH] resolve: shorten code a bit --- src/resolve/resolved-mdns.c | 4 ++-- 1 file 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; }