mirror of
https://github.com/w23/xash3d-fwgs
synced 2025-01-18 23:00:01 +01:00
Revert "engine: network: do not read from uninitialized sockaddr storage"
This reverts commit 4f78ec01cf39fda45bd190309f53ce12724b7413.
This commit is contained in:
parent
ae66291272
commit
eaf9a9283a
@ -1451,10 +1451,10 @@ static qboolean NET_QueuePacket( netsrc_t sock, netadr_t *from, byte *data, size
|
||||
addr_len = sizeof( addr );
|
||||
ret = recvfrom( net_socket, buf, sizeof( buf ), 0, (struct sockaddr *)&addr, &addr_len );
|
||||
|
||||
NET_SockadrToNetadr( &addr, from );
|
||||
|
||||
if( !NET_IsSocketError( ret ))
|
||||
{
|
||||
NET_SockadrToNetadr( &addr, from );
|
||||
|
||||
if( ret < NET_MAX_FRAGMENT )
|
||||
{
|
||||
// Transfer data
|
||||
|
Loading…
x
Reference in New Issue
Block a user