mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-16 14:10:11 +01:00
engine: network: fix some unitialized sockaddr_storage's
This commit is contained in:
parent
03a7c67731
commit
b5b6b8b785
@ -1446,7 +1446,7 @@ static qboolean NET_QueuePacket( netsrc_t sock, netadr_t *from, byte *data, size
|
|||||||
int ret, protocol;
|
int ret, protocol;
|
||||||
int net_socket;
|
int net_socket;
|
||||||
WSAsize_t addr_len;
|
WSAsize_t addr_len;
|
||||||
struct sockaddr_storage addr;
|
struct sockaddr_storage addr = { 0 };
|
||||||
|
|
||||||
*length = 0;
|
*length = 0;
|
||||||
|
|
||||||
@ -1612,7 +1612,7 @@ NET_SendPacketEx
|
|||||||
void NET_SendPacketEx( netsrc_t sock, size_t length, const void *data, netadr_t to, size_t splitsize )
|
void NET_SendPacketEx( netsrc_t sock, size_t length, const void *data, netadr_t to, size_t splitsize )
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
struct sockaddr_storage addr;
|
struct sockaddr_storage addr = { 0 };
|
||||||
SOCKET net_socket = 0;
|
SOCKET net_socket = 0;
|
||||||
|
|
||||||
if( !net.initialized || to.type == NA_LOOPBACK )
|
if( !net.initialized || to.type == NA_LOOPBACK )
|
||||||
@ -1748,7 +1748,7 @@ NET_IPSocket
|
|||||||
*/
|
*/
|
||||||
static int NET_IPSocket( const char *net_iface, int port, int family )
|
static int NET_IPSocket( const char *net_iface, int port, int family )
|
||||||
{
|
{
|
||||||
struct sockaddr_storage addr;
|
struct sockaddr_storage addr = { 0 };
|
||||||
int err, net_socket;
|
int err, net_socket;
|
||||||
uint optval = 1;
|
uint optval = 1;
|
||||||
dword _true = 1;
|
dword _true = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user