authd: options can have no parameters.
This is used for deleting all blacklists for instance.
This commit is contained in:
parent
c3780ae27f
commit
850ced64fe
1 changed files with 2 additions and 2 deletions
|
@ -78,9 +78,9 @@ handle_options(int parc, char *parv[])
|
||||||
{
|
{
|
||||||
struct auth_opts_handler *handler;
|
struct auth_opts_handler *handler;
|
||||||
|
|
||||||
if(parc < 3)
|
if(parc < 2)
|
||||||
{
|
{
|
||||||
warn_opers(L_CRIT, "BUG: handle_options received too few parameters (at least 3 expected, got %d)", parc);
|
warn_opers(L_CRIT, "BUG: handle_options received too few parameters (at least 2 expected, got %d)", parc);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue