_dbus_transport_new_for_tcp_socket: add missing commas to address
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 24 Feb 2012 11:15:21 +0000 (11:15 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 5 Jun 2012 11:18:30 +0000 (12:18 +0100)
Ralf pointed out that the address doesn't round-trip correctly.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=45896
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
Tested-by: Ralf Habacker <ralf.habacker@freenet.de>
dbus/dbus-transport-socket.c

index 0673a8c..544d00a 100644 (file)
@@ -1337,12 +1337,12 @@ _dbus_transport_new_for_tcp_socket (const char     *host,
     goto error;
 
   if (family != NULL &&
-      (!_dbus_string_append (&address, "family=") ||
+      (!_dbus_string_append (&address, ",family=") ||
        !_dbus_string_append (&address, family)))
     goto error;
 
   if (noncefile != NULL &&
-      (!_dbus_string_append (&address, "noncefile=") ||
+      (!_dbus_string_append (&address, ",noncefile=") ||
        !_dbus_string_append (&address, noncefile)))
     goto error;