db-move: moved linux-zen from [testing] to [extra] (x86_64)
[arch-packages.git] / avahi / repos / extra-x86_64 / 0001-Fix-avahi-browse-Invalid-service-type.patch
blob8511f3b1aaffad0bca19244632da3887152f77f5
1 From 6fe6c44d953edd50c32ff6ce8fec5ac811fa3b69 Mon Sep 17 00:00:00 2001
2 From: Asger Hautop Drewsen <asger@princh.com>
3 Date: Mon, 9 Aug 2021 14:25:08 +0200
4 Subject: [PATCH] Fix avahi-browse: Invalid service type
6 ---
7 avahi-core/browse-service.c | 4 +++-
8 1 file changed, 3 insertions(+), 1 deletion(-)
10 diff --git a/avahi-core/browse-service.c b/avahi-core/browse-service.c
11 index 5531360..2d3fa75 100644
12 --- a/avahi-core/browse-service.c
13 +++ b/avahi-core/browse-service.c
14 @@ -103,7 +103,9 @@ AvahiSServiceBrowser *avahi_s_service_browser_prepare(
15 AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_PROTO_VALID(protocol), AVAHI_ERR_INVALID_PROTOCOL);
16 AVAHI_CHECK_VALIDITY_RETURN_NULL(server, !domain || avahi_is_valid_domain_name(domain), AVAHI_ERR_INVALID_DOMAIN_NAME);
17 AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_FLAGS_VALID(flags, AVAHI_LOOKUP_USE_WIDE_AREA|AVAHI_LOOKUP_USE_MULTICAST), AVAHI_ERR_INVALID_FLAGS);
18 - AVAHI_CHECK_VALIDITY_RETURN_NULL(server, avahi_is_valid_service_type_generic(service_type), AVAHI_ERR_INVALID_SERVICE_TYPE);
20 + if (!avahi_is_valid_service_type_generic(service_type))
21 + service_type = "_invalid._tcp";
23 if (!domain)
24 domain = server->domain_name;
25 --
26 2.32.0