engine: server: validate uuid in protinfo, it's an md5 string

This commit is contained in:
Alibek Omarov
2025-03-01 22:45:01 +03:00
parent fc2888e107
commit c76752cc5f
2 changed files with 25 additions and 17 deletions

View File

@@ -355,12 +355,6 @@ static void SV_ConnectClient( netadr_t from )
if( !SV_ProcessUserAgent( from, protinfo ))
return;
if( Q_strlen( Info_ValueForKey( protinfo, "uuid" )) != 32 )
{
SV_RejectConnection( from, "invalid authentication certificate length\n" );
return;
}
// extract qport from protocol info
qport = Q_atoi( Info_ValueForKey( protinfo, "qport" ));
extensions = Q_atoi( Info_ValueForKey( protinfo, "ext" ));