mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-06-04 20:18:16 +02:00
_dbus_listen_tcp_socket: unify cleanup for EADDRINUSE and other failures
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=29881
This commit is contained in:
parent
40b1fc5fff
commit
16cc54d958
1 changed files with 1 additions and 2 deletions
|
|
@ -1438,8 +1438,7 @@ _dbus_listen_tcp_socket (const char *host,
|
|||
dbus_set_error (error, _dbus_error_from_errno (errno),
|
||||
"Failed to bind socket \"%s:%s\": %s",
|
||||
host ? host : "*", port, _dbus_strerror (errno));
|
||||
dbus_free (listen_fd);
|
||||
return -1;
|
||||
goto failed;
|
||||
}
|
||||
|
||||
for (i = 0 ; i < nlisten_fd ; i++)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue