mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-04 03:50:16 +01:00
_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>
This commit is contained in:
parent
c6c1874179
commit
af13ae7e43
1 changed files with 0 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue