From 97e78f6dfe401925f97158f99a3cafd43d19a463 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 1 Apr 2006 00:48:55 +0000 Subject: when resolving a service, don't return host name that was assigned to the actual A/AAAA record, but the one specified in the SRV RR. This broke vhost setups with CNAMEs. (This fixes Ubuntu bug 36642) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1185 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-core/resolve-service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avahi-core/resolve-service.c b/avahi-core/resolve-service.c index a897546..1ad6078 100644 --- a/avahi-core/resolve-service.c +++ b/avahi-core/resolve-service.c @@ -131,7 +131,7 @@ static void finish(AvahiSServiceResolver *r, AvahiResolverEvent event) { r->service_name, r->service_type, r->domain_name, - r->address_record ? r->address_record->key->name : r->srv_record->data.srv.name, + r->srv_record->data.srv.name, r->address_record ? &a : NULL, r->srv_record->data.srv.port, r->txt_record ? r->txt_record->data.txt.string_list : NULL, -- cgit