Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-cluster
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-cluster
Commits
7e43f650
Commit
7e43f650
authored
May 24, 2018
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix nblack argument of cluster_task_param_l with stack spc
parent
69c050df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
vmod_cluster.c
src/vmod_cluster.c
+6
-3
No files found.
src/vmod_cluster.c
View file @
7e43f650
...
...
@@ -429,6 +429,7 @@ vmod_cluster_backend(VRT_CTX,
const
struct
vmod_cluster_cluster_param
*
pr
;
struct
vmod_cluster_cluster_param
*
pl
=
NULL
;
void
*
spc
=
NULL
;
int
nblack
;
if
(
!
modify
)
{
if
(
arg
->
resolve
==
vmod_enum_LAZY
)
...
...
@@ -449,6 +450,7 @@ vmod_cluster_backend(VRT_CTX,
CHECK_OBJ_NOTNULL
(
pr
,
VMOD_CLUSTER_CLUSTER_PARAM_MAGIC
);
char
pstk
[
param_sz
(
pr
,
pr
->
nblack
+
1
)];
nblack
=
pr
->
nblack
;
if
(
arg
->
resolve
==
vmod_enum_NOW
)
spc
=
pstk
;
...
...
@@ -456,20 +458,21 @@ vmod_cluster_backend(VRT_CTX,
if
(
arg
->
valid_deny
&&
arg
->
deny
!=
NULL
&&
!
cluster_blacklisted
(
pr
,
arg
->
deny
))
{
if
(
pl
==
NULL
)
{
nblack
=
pr
->
nblack
+
1
;
pr
=
pl
=
cluster_task_param_l
(
ctx
,
vc
,
pr
->
nblack
+
1
,
spc
);
nblack
,
spc
);
}
cluster_blacklist_add
(
pl
,
arg
->
deny
);
}
if
(
arg
->
valid_real
&&
pr
->
real
!=
arg
->
real
)
{
if
(
pl
==
NULL
)
pr
=
pl
=
cluster_task_param_l
(
ctx
,
vc
,
0
,
spc
);
pr
=
pl
=
cluster_task_param_l
(
ctx
,
vc
,
nblack
,
spc
);
pl
->
real
=
arg
->
real
;
}
if
(
arg
->
valid_uncacheable_direct
&&
pr
->
uncacheable_direct
!=
arg
->
valid_uncacheable_direct
)
{
if
(
pl
==
NULL
)
pr
=
pl
=
cluster_task_param_l
(
ctx
,
vc
,
0
,
spc
);
pr
=
pl
=
cluster_task_param_l
(
ctx
,
vc
,
nblack
,
spc
);
pl
->
uncacheable_direct
=
arg
->
valid_uncacheable_direct
;
}
if
(
arg
->
resolve
==
vmod_enum_LAZY
)
...
...
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