1
0
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:
Bram Matthys
2026-06-17 20:42:41 +02:00
parent e7459df725
commit d7962e1bbb
+2 -1
View File
@@ -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",