summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-08-14 19:56:22 +0200
committerLennart Poettering <lennart@poettering.net>2014-08-14 19:56:22 +0200
commit5ba73e9b646af4d8109a5a633aa235665858144d (patch)
tree524a3a3141b085c9a1cb75572ea6ce3cce8c3fd8 /src
parentca70bec9261977336c94f44d5fcf37e1c495326a (diff)
resolved: clarify that LLMNR scopes must have a link assigned
This is supposed to remove some compiler warnings: http://lists.freedesktop.org/archives/systemd-devel/2014-July/021393.html
Diffstat (limited to 'src')
-rw-r--r--src/resolve/resolved-dns-scope.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resolve/resolved-dns-scope.c b/src/resolve/resolved-dns-scope.c
index 396ae19e48..85709a4af8 100644
--- a/src/resolve/resolved-dns-scope.c
+++ b/src/resolve/resolved-dns-scope.c
@@ -365,6 +365,10 @@ int dns_scope_good_key(DnsScope *s, DnsResourceKey *key) {
int dns_scope_llmnr_membership(DnsScope *s, bool b) {
int fd;
+ assert(s);
+ assert(s->protocol == DNS_PROTOCOL_LLMNR);
+ assert(s->link);
+
if (s->family == AF_INET) {
struct ip_mreqn mreqn = {
.imr_multiaddr = LLMNR_MULTICAST_IPV4_ADDRESS,