mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
(trunk libT) #5318: 'socket leak when bind() fails': fixed.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user