summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-04-02 21:20:34 +0200
committerLennart Poettering <lennart@poettering.net>2012-04-02 21:20:34 +0200
commit468519681b09f00851e1d4dd658b939e4e938cf6 (patch)
tree6a1b522efb848e599730f9b4dfe9ec5d6e3dc5a1
parent530fbb59abafb970ef1dd8f61571b13fb0918b23 (diff)
core: don't leak hinfo/workstation even if the configuration file doesn't exist
-rw-r--r--avahi-core/server.c4
-rw-r--r--man/avahi-daemon.conf.5.xml.in4
2 files changed, 4 insertions, 4 deletions
diff --git a/avahi-core/server.c b/avahi-core/server.c
index 86fd4a5..69a1d02 100644
--- a/avahi-core/server.c
+++ b/avahi-core/server.c
@@ -1582,9 +1582,9 @@ AvahiServerConfig* avahi_server_config_init(AvahiServerConfig *c) {
c->host_name = NULL;
c->domain_name = NULL;
c->check_response_ttl = 0;
- c->publish_hinfo = 1;
+ c->publish_hinfo = 0;
c->publish_addresses = 1;
- c->publish_workstation = 1;
+ c->publish_workstation = 0;
c->publish_domain = 1;
c->use_iff_running = 0;
c->enable_reflector = 0;
diff --git a/man/avahi-daemon.conf.5.xml.in b/man/avahi-daemon.conf.5.xml.in
index 487645b..bea7ed5 100644
--- a/man/avahi-daemon.conf.5.xml.in
+++ b/man/avahi-daemon.conf.5.xml.in
@@ -244,7 +244,7 @@
useful for administrative purposes. This is recommended by the
mDNS specification but not required. For the sake of privacy
you might choose to disable this feature. Defaults to
- "yes."</p>
+ "no".</p>
</option>
<option>
@@ -254,7 +254,7 @@
might be useful for administrative purposes (i.e. browse for
all PCs on the LAN), but is not required or recommended by any
specification. Newer MacOS X releases register a service of
- this type. Defaults to "yes".</p>
+ this type. Defaults to "no".</p>
</option>
<option>