Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
c3ba03ee
Commit
c3ba03ee
authored
Dec 16, 2019
by
Nils Goroll
Committed by
Reza Naghibi
May 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set the cli_limit when the parameter is actually available
it is not before we have parsed parameters
parent
6590787f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
mgt_cli.c
bin/varnishd/mgt/mgt_cli.c
+0
-1
mgt_main.c
bin/varnishd/mgt/mgt_main.c
+2
-0
No files found.
bin/varnishd/mgt/mgt_cli.c
View file @
c3ba03ee
...
...
@@ -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
);
...
...
bin/varnishd/mgt/mgt_main.c
View file @
c3ba03ee
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment