Blame SOURCES/0008-avahi_server_set_browse_domains-check-the-provided-d.patch

850466
From d81e470bc3d7647d85d2456885ebc86a5e19bc1f Mon Sep 17 00:00:00 2001
850466
From: Trent Lloyd <trent@lloyd.id.au>
850466
Date: Tue, 31 Mar 2015 09:00:09 +0800
850466
Subject: [PATCH] avahi_server_set_browse_domains: check the provided domain
850466
 list, instead of the list from the configuration file
850466
850466
(cherry-picked from commit 1616785d583939aa4c1b859fcf626759214769dd)
850466
850466
Related: #1340837
850466
---
850466
 avahi-core/server.c | 2 +-
850466
 1 file changed, 1 insertion(+), 1 deletion(-)
850466
850466
diff --git a/avahi-core/server.c b/avahi-core/server.c
850466
index 4acf5fc..dd9da99 100644
850466
--- a/avahi-core/server.c
850466
+++ b/avahi-core/server.c
850466
@@ -1792,7 +1792,7 @@ int avahi_server_set_browse_domains(AvahiServer *s, AvahiStringList *domains) {
850466
 
850466
     assert(s);
850466
 
850466
-    for (l = s->config.browse_domains; l; l = l->next)
850466
+    for (l = domains; l; l = l->next)
850466
         if (!avahi_is_valid_domain_name((char*) l->text))
850466
             return avahi_server_set_errno(s, AVAHI_ERR_INVALID_DOMAIN_NAME);
850466
 
850466
-- 
850466
2.7.4
850466