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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user