diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-08-15 16:42:06 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-08-15 16:42:14 +0200 |
commit | 4de120ee442797bc30ecfd25b4d539cac9cb56ce (patch) | |
tree | 9a3437f91a36404b385f1e2ea612c6f06df8515d /src/resolve/resolved-dns-scope.c | |
parent | 40274ed6232389442f24205bc15779b9a4fe2942 (diff) |
resolved: fix assertion when joining llmnr mcast group
Diffstat (limited to 'src/resolve/resolved-dns-scope.c')
-rw-r--r-- | src/resolve/resolved-dns-scope.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-scope.c b/src/resolve/resolved-dns-scope.c index 85709a4af8..039a754ff0 100644 --- a/src/resolve/resolved-dns-scope.c +++ b/src/resolve/resolved-dns-scope.c @@ -366,7 +366,10 @@ int dns_scope_llmnr_membership(DnsScope *s, bool b) { int fd; assert(s); - assert(s->protocol == DNS_PROTOCOL_LLMNR); + + if (s->protocol != DNS_PROTOCOL_LLMNR) + return 0; + assert(s->link); if (s->family == AF_INET) { |