authd: options can have no parameters.

This is used for deleting all blacklists for instance.
This commit is contained in:
Elizabeth Myers 2016-04-02 20:42:20 -05:00
parent c3780ae27f
commit 850ced64fe

View file

@ -78,9 +78,9 @@ handle_options(int parc, char *parv[])
{
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;
}