summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-08-20 23:59:59 +0000
committerLennart Poettering <lennart@poettering.net>2005-08-20 23:59:59 +0000
commit6be8bbd920f435f3ed9c5babb8161a6194b690ec (patch)
tree3679490154e8c321b76570dad4c80da91d0aa2eb
parentc054d0c3dfbea48165d63542bc6c7888d074c8de (diff)
* fix a bug in avahi-discover-standalone found by some guy calling himself "j"
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@373 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
-rw-r--r--avahi-core/resolve-service.c1
-rw-r--r--avahi-discover-standalone/main.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/avahi-core/resolve-service.c b/avahi-core/resolve-service.c
index 0321b4c..141df9e 100644
--- a/avahi-core/resolve-service.c
+++ b/avahi-core/resolve-service.c
@@ -122,7 +122,6 @@ static void finish(AvahiSServiceResolver *r, AvahiResolverEvent event) {
st[i-1] = 0;
r->callback(r, r->interface, r->protocol, event, sn, st, r->domain_name, r->srv_record->data.srv.name, &a, r->srv_record->data.srv.port, r->txt_record->data.txt.string_list, r->userdata);
-
}
}
diff --git a/avahi-discover-standalone/main.c b/avahi-discover-standalone/main.c
index 6cd4cc4..1075088 100644
--- a/avahi-discover-standalone/main.c
+++ b/avahi-discover-standalone/main.c
@@ -238,6 +238,7 @@ static void service_resolver_callback(AvahiSServiceResolver *r, AvahiIfIndex int
g_assert(r == service_resolver);
avahi_s_service_resolver_free(service_resolver);
service_resolver = NULL;
+ return;
}
if (event == AVAHI_RESOLVER_TIMEOUT)