From dd55b77543d0f1a14b0580b502d0f4f279b3bbcd Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sat, 7 Feb 2026 20:40:40 +0500 Subject: [PATCH] engine: client: identification: do not salt port as suggested by @snmetamorph --- engine/client/identification.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/engine/client/identification.c b/engine/client/identification.c index 336205cf..cd22502c 100644 --- a/engine/client/identification.c +++ b/engine/client/identification.c @@ -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; }