1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-06 10:33:12 +02:00

Fix crash on rpc-user { } block without a name.

This commit is contained in:
Bram Matthys
2023-04-01 08:58:17 +02:00
parent 7a50f963f8
commit 4e49323e88
+2 -1
View File
@@ -303,7 +303,8 @@ int rpc_config_test_rpc_user(ConfigFile *cf, ConfigEntry *ce, int type, int *err
{
config_error("%s:%d: rpc-user block needs to have a name, eg: rpc-user apiuser { }",
ce->file->filename, ce->line_number);
errors++;
*errs = 1;
return -1; /* quick return */
}
if (!valid_rpc_user_name(ce->value))