mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-06 17:03:12 +02:00
Fix crash (NULL pointer) with old-style set::anti-flood block
(we should actually remove this one day :D)
This commit is contained in:
+2
-1
@@ -9220,8 +9220,9 @@ int _test_set(ConfigFile *conf, ConfigEntry *ce)
|
||||
}
|
||||
else if (!strcmp(ceppp->name, "away-count"))
|
||||
{
|
||||
int temp = atol(ceppp->value);
|
||||
int temp;
|
||||
CheckNull(ceppp);
|
||||
temp = atol(ceppp->value);
|
||||
if (temp < 1 || temp > 255)
|
||||
{
|
||||
config_error("%s:%i: set::anti-flood::away-count must be between 1 and 255",
|
||||
|
||||
Reference in New Issue
Block a user