Commit 0bff7aab authored by Nils Goroll's avatar Nils Goroll

set the cli_limit when the parameter is actually available

it is not before we have parsed parameters
parent 035a5bec
......@@ -352,7 +352,6 @@ mgt_cli_init_cls(void)
mgt_cls = VCLS_New(NULL);
AN(mgt_cls);
VCLS_SetLimit(mgt_cls, &mgt_param.cli_limit);
VCLS_SetHooks(mgt_cls, mgt_cli_cb_before, mgt_cli_cb_after);
VCLS_AddFunc(mgt_cls, MCF_NOAUTH, cli_auth);
VCLS_AddFunc(mgt_cls, MCF_AUTH, cli_proto);
......
......@@ -704,6 +704,8 @@ main(int argc, char * const *argv)
VSB_data(cli[0].sb));
}
VCLS_SetLimit(mgt_cls, &mgt_param.cli_limit);
assert(d_flag == 0 || F_flag == 0);
if (C_flag) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment