Browse Source

engine: common: net_ws: fix uninitialized family in IPSocket

pull/2/head
Alibek Omarov 2 years ago
parent
commit
e97310c441
  1. 4
      engine/common/net_ws.c

4
engine/common/net_ws.c

@ -1674,12 +1674,10 @@ static int NET_IPSocket( const char *net_iface, int port, int family ) @@ -1674,12 +1674,10 @@ static int NET_IPSocket( const char *net_iface, int port, int family )
int err, net_socket;
uint optval = 1;
dword _true = 1;
int pfamily;
int pfamily = PF_INET;
if( family == AF_INET6 )
pfamily = PF_INET6;
else if( family == AF_INET )
pfamily = PF_INET;
if( NET_IsSocketError(( net_socket = socket( pfamily, SOCK_DGRAM, IPPROTO_UDP ))))
{

Loading…
Cancel
Save