From 6971a06b04b3fdd48b61202b2276e8140f4b7be0 Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Wed, 21 Apr 2004 22:13:07 +0000 Subject: 2004-04-21 Kristian Høgsberg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * dbus/dbus-server-unix.c (unix_finalize): Don't unref unix_server->watch here, it is unreffed in disconnect. (_dbus_server_new_for_tcp_socket): convert NULL host to "localhost" here so we don't append NULL to address. * dbus/dbus-server.c (_dbus_server_test): Add test case for various addresses, including tcp with no explicit host. --- dbus/dbus-sysdeps.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'dbus/dbus-sysdeps.c') diff --git a/dbus/dbus-sysdeps.c b/dbus/dbus-sysdeps.c index 9c06ce80..e9d00201 100644 --- a/dbus/dbus-sysdeps.c +++ b/dbus/dbus-sysdeps.c @@ -687,9 +687,6 @@ _dbus_listen_tcp_socket (const char *host, return -1; } - if (host == NULL) - host = "localhost"; - he = gethostbyname (host); if (he == NULL) { -- cgit