mirror of
https://github.com/matrix-construct/construct
synced 2024-12-29 00:44:17 +01:00
authd: avoid crash on full reload
This commit is contained in:
parent
4dbed1ed61
commit
7c4b574e1b
1 changed files with 2 additions and 2 deletions
|
@ -104,13 +104,13 @@ handle_reload(int parc, char *parv[])
|
|||
{
|
||||
authd_reload_handler handler;
|
||||
|
||||
if(parc < 2)
|
||||
if(parc <= 2)
|
||||
{
|
||||
/* Reload all handlers */
|
||||
for(size_t i = 0; i < 256; i++)
|
||||
{
|
||||
if ((handler = authd_reload_handlers[(unsigned char) i]) != NULL)
|
||||
handler(parv[1][0]);
|
||||
handler('\0');
|
||||
}
|
||||
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue