Commit c3ba03ee authored by Nils Goroll's avatar Nils Goroll Committed by Reza Naghibi

set the cli_limit when the parameter is actually available

it is not before we have parsed parameters
parent 6590787f
......@@ -353,7 +353,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);
......
......@@ -703,6 +703,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