summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {