mirror of
https://github.com/transmission/transmission
synced 2024-12-23 08:13:27 +00:00
(trunk libT) #5318: 'socket leak when bind() fails': fixed.
This commit is contained in:
parent
d4d2a04560
commit
6bcdd93e45
1 changed files with 1 additions and 0 deletions
|
@ -268,6 +268,7 @@ tr_netOpenPeerSocket (tr_session * session,
|
|||
{
|
||||
tr_logAddError (_("Couldn't set source address %s on %d: %s"),
|
||||
tr_address_to_string (source_addr), s, tr_strerror (errno));
|
||||
tr_netClose (session, s);
|
||||
return -errno;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue