forked from mirror/openmw-tes3mp
[Server] Do not allow to connect with an empty plugin list
This commit is contained in:
parent
b5c957c473
commit
2e227c7af5
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ bool Networking::preInit(RakNet::Packet *packet, RakNet::BitStream &bsIn)
|
||||||
packetPreInit.setChecksums(&plugins);
|
packetPreInit.setChecksums(&plugins);
|
||||||
packetPreInit.Read();
|
packetPreInit.Read();
|
||||||
|
|
||||||
if (!packetPreInit.isPacketValid())
|
if (!packetPreInit.isPacketValid() || plugins.empty())
|
||||||
{
|
{
|
||||||
LOG_APPEND(Log::LOG_ERROR, "Invalid packetPreInit");
|
LOG_APPEND(Log::LOG_ERROR, "Invalid packetPreInit");
|
||||||
peer->CloseConnection(packet->systemAddress, false); // close connection without notification
|
peer->CloseConnection(packet->systemAddress, false); // close connection without notification
|
||||||
|
|
Loading…
Reference in a new issue