engine: client: identification: do not salt port as suggested by @snmetamorph

This commit is contained in:
Alibek Omarov
2026-02-07 20:40:40 +05:00
committed by a1batross
parent c772fb98d1
commit dd55b77543

View File

@@ -644,16 +644,13 @@ void ID_GetMD5ForAddress( char *key, netadr_t adr, size_t size )
// local server case
case NA_IP:
memcpy( buf, adr.ip, sizeof( adr.ip ));
memcpy( buf + sizeof( adr.ip ), &adr.port, sizeof( adr.port ));
bufsize = sizeof( adr.ip ) + sizeof( adr.port );
bufsize = sizeof( adr.ip );
break;
case NA_IP6:
NET_NetadrToIP6Bytes( buf, &adr );
memcpy( buf + 16, &adr.port, sizeof( adr.port ));
bufsize = 16 + sizeof( adr.port );
bufsize = 16;
break;
default:
bufsize = 0;
break;
}