From: Lennart Poettering Date: Thu, 4 Feb 2016 00:10:12 +0000 (+0100) Subject: resolved: properly turn off DNSSEC for LLMNR/mDNS scopes X-Git-Tag: v231~680^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=658f7f026e85734ebbaf72dbf83df61d62b87460;p=platform%2Fupstream%2Fsystemd.git resolved: properly turn off DNSSEC for LLMNR/mDNS scopes --- diff --git a/src/resolve/resolved-dns-scope.c b/src/resolve/resolved-dns-scope.c index 0323979..8f3be4b 100644 --- a/src/resolve/resolved-dns-scope.c +++ b/src/resolve/resolved-dns-scope.c @@ -57,8 +57,6 @@ int dns_scope_new(Manager *m, DnsScope **ret, Link *l, DnsProtocol protocol, int s->family = family; s->resend_timeout = MULTICAST_RESEND_TIMEOUT_MIN_USEC; - s->dnssec_mode = _DNSSEC_MODE_INVALID; - if (protocol == DNS_PROTOCOL_DNS) { /* Copy DNSSEC mode from the link if it is set there, * otherwise take the manager's DNSSEC mode. Note that @@ -70,7 +68,8 @@ int dns_scope_new(Manager *m, DnsScope **ret, Link *l, DnsProtocol protocol, int s->dnssec_mode = link_get_dnssec_mode(l); else s->dnssec_mode = manager_get_dnssec_mode(m); - } + } else + s->dnssec_mode = DNSSEC_NO; LIST_PREPEND(scopes, m->dns_scopes, s);