chiark / gitweb /
shared/sparse-endian.h: add missing byteswap.h include
[elogind.git] / src / resolve / resolved-dns-scope.c
index 85709a4af8951d778daa127048a73f12dc3fdcd4..40d59922d16139640983b3ff9ed0efad15219537 100644 (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) {
@@ -706,7 +709,7 @@ int dns_scope_notify_conflict(DnsScope *scope, DnsResourceRecord *rr) {
 
         /* We don't send these queries immediately. Instead, we queue
          * them, and send them after some jitter delay. */
-        r = hashmap_ensure_allocated(&scope->conflict_queue, dns_resource_key_hash_func, dns_resource_key_compare_func);
+        r = hashmap_ensure_allocated(&scope->conflict_queue, &dns_resource_key_hash_ops);
         if (r < 0) {
                 log_oom();
                 return r;