diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2020-10-09 15:06:34 +0200 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2020-10-09 15:11:55 +0200 |
commit | d46b79bbe0e821b921a8f3874c5ea4b50bde9252 (patch) | |
tree | 55a773a28d00b05ec82ccb9998c265c6996aa111 /src/resolve/resolved-dns-query.c | |
parent | d7a0f1f4f9910a1a2d290e31b2ba8cfa7126fbdd (diff) | |
download | systemd-d46b79bbe0e821b921a8f3874c5ea4b50bde9252.tar.gz |
tree-wide: drop if braces around single line expressions as well
Diffstat (limited to 'src/resolve/resolved-dns-query.c')
-rw-r--r-- | src/resolve/resolved-dns-query.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/resolve/resolved-dns-query.c b/src/resolve/resolved-dns-query.c index 3afe4cf73b..1eff893b21 100644 --- a/src/resolve/resolved-dns-query.c +++ b/src/resolve/resolved-dns-query.c @@ -908,13 +908,11 @@ static int dns_query_cname_redirect(DnsQuery *q, const DnsResourceRecord *cname) if (r == 0 && k == 0) /* No actual cname happened? */ return -ELOOP; - if (q->answer_protocol == DNS_PROTOCOL_DNS) { + if (q->answer_protocol == DNS_PROTOCOL_DNS) /* Don't permit CNAME redirects from unicast DNS to LLMNR or MulticastDNS, so that global resources * cannot invade the local namespace. The opposite way we permit: local names may redirect to global * ones. */ - q->flags &= ~(SD_RESOLVED_LLMNR|SD_RESOLVED_MDNS); /* mask away the local protocols */ - } /* Turn off searching for the new name */ q->flags |= SD_RESOLVED_NO_SEARCH; |