mirror of
https://github.com/transmission/transmission
synced 2025-03-04 18:48:06 +00:00
parent
fcff89a21a
commit
634b1e8fc1
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,7 @@ void tr_session::tr_udp_core::sendto(void const* buf, size_t buflen, struct sock
|
|||
{
|
||||
errno = EAFNOSUPPORT;
|
||||
}
|
||||
else if (auto const sock = to->sa_family == AF_INET ? udp4_socket_ : udp6_socket_; sock != TR_BAD_SOCKET)
|
||||
else if (auto const sock = to->sa_family == AF_INET ? udp4_socket_ : udp6_socket_; sock == TR_BAD_SOCKET)
|
||||
{
|
||||
// don't warn on bad sockets; the system may not support IPv6
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue