[systemd-commits] src/resolve

Lennart Poettering lennart at kemper.freedesktop.org
Fri Aug 15 07:42:53 PDT 2014


 src/resolve/resolved-dns-scope.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 4de120ee442797bc30ecfd25b4d539cac9cb56ce
Author: Lennart Poettering <lennart at poettering.net>
Date:   Fri Aug 15 16:42:06 2014 +0200

    resolved: fix assertion when joining llmnr mcast group

diff --git a/src/resolve/resolved-dns-scope.c b/src/resolve/resolved-dns-scope.c
index 85709a4..039a754 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) {



More information about the systemd-commits mailing list