Fix GROUP_JOIN_FAIL being initialized as a GROUP_INVITE_FAIL.

This was a vulnerability, since JOIN_FAIL is larger than INVITE_FAIL.
This commit is contained in:
dongresource 2020-10-09 18:24:16 +02:00
parent 9f280c2c31
commit 2b9d0f6bab

View File

@ -95,7 +95,7 @@ void GroupManager::joinGroup(CNSocket* sock, CNPacketData* data) {
// fail if the group is full the other player is already in a group
if (plr->groupCnt > 1 || plr->iIDGroup != plr->iID || otherPlr->groupCnt >= 4) {
INITSTRUCT(sP_FE2CL_PC_GROUP_INVITE_FAIL, resp);
INITSTRUCT(sP_FE2CL_PC_GROUP_JOIN_FAIL, resp);
sock->sendPacket((void*)&resp, P_FE2CL_PC_GROUP_JOIN_FAIL, sizeof(sP_FE2CL_PC_GROUP_JOIN_FAIL));
return;
}