Remove some dead code related to fd.o #37258
authoreXeC001er <execooler@gmail.com>
Fri, 11 Nov 2011 11:33:23 +0000 (11:33 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 4 Jan 2012 17:52:11 +0000 (17:52 +0000)
This would now just attempt to close fd -1, which is useless.

[commit message added by smcv]

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=37258
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
dbus/dbus-sysdeps-unix.c

index 98667f2..1a8f6fc 100644 (file)
@@ -1216,7 +1216,6 @@ _dbus_connect_tcp_socket_with_nonce (const char     *host,
                       _dbus_error_from_errno (errno),
                       "Failed to lookup host/port: \"%s:%s\": %s (%d)",
                       host, port, gai_strerror(res), res);
-      _dbus_close (fd, NULL);
       return -1;
     }