summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-08-15 16:42:06 +0200
committerLennart Poettering <lennart@poettering.net>2014-08-15 16:42:14 +0200
commit4de120ee442797bc30ecfd25b4d539cac9cb56ce (patch)
tree9a3437f91a36404b385f1e2ea612c6f06df8515d /src
parent40274ed6232389442f24205bc15779b9a4fe2942 (diff)
resolved: fix assertion when joining llmnr mcast group
Diffstat (limited to 'src')
-rw-r--r--src/resolve/resolved-dns-scope.c5
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) {