mirror of
https://github.com/EQEmu/Server.git
synced 2026-12-02 21:42:17 +00:00
[Crash] Stability Fixes (#2489)
* Input sanitation for #zone * Update zone.cpp * Update clientlist.cpp * Test * Test * Remove logging, revert /who all code * Remove log * Update clientlist.cpp
This commit is contained in:
1 parent
bbbebdd346
commit
7092183103
5 files changed
+66
-48
No files matched your search
+10
-1
@@ -8,5 +8,14 @@ void WorldserverCLI::TestCommand(int argc, char **argv, argh::parser &cmd, std::
|
||||
return;
|
||||
}
|
||||
|
||||
zone_store.GetZoneName(0, false);
|
||||
zone_store.LoadZones(database);
|
||||
|
||||
const char* zonename = ZoneName(0);
|
||||
if (zonename == 0) {
|
||||
LogInfo("Zone name is 0");
|
||||
}
|
||||
if (zonename == nullptr) {
|
||||
LogInfo("Zone name is nullptr");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user