* Fix a bug in avahi-client where if you have multiple clients, a crash can occur when using AvahiServiceBrowsers.
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@424
941a03a8-eaeb-0310-b9a0-
b1bbd8fe43fe
if (strcmp (b->path, path) == 0)
break;
+ if (!b)
+ goto fail;
+
if (!dbus_message_get_args (
message, &error,
DBUS_TYPE_INT32, &interface,
} else {
c->enable_dbus = 0;
}
-#ifdef HAVE_DBUS
- if (c->enable_dbus == 1)
- avahi_log_warn("Avahi was compiled without d-bus support but you requested it was enabled in the config file");
-#endif
}
else if (strcasecmp(p->key, "drop-root") == 0)
c->drop_root = is_yes(p->value);
if (simple_protocol_setup(poll_api) < 0)
goto finish;
-
+ if (c->enable_dbus) {
#ifdef HAVE_DBUS
- if (c->enable_dbus)
if (dbus_protocol_setup(poll_api) < 0) {
if (c->fail_on_missing_dbus)
avahi_log_warn("WARNING: Failed to contact D-BUS daemon, disabling D-BUS support.");
c->enable_dbus = 0;
}
+#else
+ avahi_log_warn("WARNING: We are configured to enable D-BUS but it was not compiled in");
#endif
+ }
load_resolv_conf(c);
static_service_load();