mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2024-11-21 18:55:16 +00:00
Fix free issue from wrong heap if unknown packet
This commit is contained in:
parent
f6408e2b1e
commit
7c17db2d93
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ bool SocketClient::recv() {
|
||||||
|
|
||||||
if (!(header->mType > PacketType::UNKNOWN && header->mType < PacketType::End)) {
|
if (!(header->mType > PacketType::UNKNOWN && header->mType < PacketType::End)) {
|
||||||
Logger::log("Failed to acquire valid packet type! Packet Type: %d Full Packet Size %d valread size: %d", header->mType, fullSize, valread);
|
Logger::log("Failed to acquire valid packet type! Packet Type: %d Full Packet Size %d valread size: %d", header->mType, fullSize, valread);
|
||||||
free(packetBuf);
|
mHeap->free(packetBuf);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue