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; }