summaryrefslogtreecommitdiff
path: root/dbus
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2011-06-22 11:59:32 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2011-07-18 15:11:47 +0100
commitaf13ae7e43c444e1ff08d477b454bdee8cd9f892 (patch)
treebafc87cc6f407cc3c197d1291c2bbb0db6b47322 /dbus
parentc6c18741796ba99978878106ba915b3e0be225e4 (diff)
downloaddbus-af13ae7e43c444e1ff08d477b454bdee8cd9f892.tar.gz
_dbus_connect_tcp_socket_with_nonce: don't create an extra fd (which is then leaked)
This block should have been deleted in 2007, when IPv6 support was added: previously, the fd allocated at the beginning of the function was used for connect(), but for IPv6 support, the socket() call has to be inside the loop over getaddrinfo() results so its address family can be changed. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=37258 Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>
Diffstat (limited to 'dbus')
-rw-r--r--dbus/dbus-sysdeps-unix.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/dbus/dbus-sysdeps-unix.c b/dbus/dbus-sysdeps-unix.c
index e1e1728d..d6063713 100644
--- a/dbus/dbus-sysdeps-unix.c
+++ b/dbus/dbus-sysdeps-unix.c
@@ -1161,14 +1161,6 @@ _dbus_connect_tcp_socket_with_nonce (const char *host,
struct addrinfo hints;
struct addrinfo *ai, *tmp;
- _DBUS_ASSERT_ERROR_IS_CLEAR (error);
-
- if (!_dbus_open_tcp_socket (&fd, error))
- {
- _DBUS_ASSERT_ERROR_IS_SET(error);
- return -1;
- }
-
_DBUS_ASSERT_ERROR_IS_CLEAR(error);
_DBUS_ZERO (hints);