From 2e227c7af5a75574451c5c1dee49ead7179561f4 Mon Sep 17 00:00:00 2001 From: Koncord Date: Tue, 17 Jul 2018 01:07:56 +0800 Subject: [PATCH] [Server] Do not allow to connect with an empty plugin list --- apps/openmw-mp/Networking.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw-mp/Networking.cpp b/apps/openmw-mp/Networking.cpp index 1d622ff3f..2319ab799 100644 --- a/apps/openmw-mp/Networking.cpp +++ b/apps/openmw-mp/Networking.cpp @@ -229,7 +229,7 @@ bool Networking::preInit(RakNet::Packet *packet, RakNet::BitStream &bsIn) packetPreInit.setChecksums(&plugins); packetPreInit.Read(); - if (!packetPreInit.isPacketValid()) + if (!packetPreInit.isPacketValid() || plugins.empty()) { LOG_APPEND(Log::LOG_ERROR, "Invalid packetPreInit"); peer->CloseConnection(packet->systemAddress, false); // close connection without notification