Commit 05f87187 authored by Christophe Massiot's avatar Christophe Massiot

* comm.c: Early termination for anonymous sockets.

parent 435ecbbb
......@@ -97,6 +97,11 @@ void comm_Read( void )
strerror(errno) );
return;
}
if ( sun_length == 0 || sun_length > sizeof(sun_client) )
{
msg_Err( NULL, "anonymous packet from comm socket\n" );
return;
}
if ( p_buffer[0] != COMM_HEADER_MAGIC )
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment