resolved: fix assertion when joining llmnr mcast group

This commit is contained in:
Lennart Poettering
2014-08-15 16:42:14 +02:00
parent 40274ed623
commit 4de120ee44
+4 -1
View File
@@ -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) {