Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-objvar
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
uplex-varnish
varnish-objvar
Commits
98d1e0a1
Unverified
Commit
98d1e0a1
authored
Jun 01, 2021
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle NULL string argument to foreach
parent
dc6f425d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
vmod_taskvar.c
src/vmod_taskvar.c
+1
-1
vmod_taskvar_foreach.vtc
src/vtc/vmod_taskvar_foreach.vtc
+2
-1
No files found.
src/vmod_taskvar.c
View file @
98d1e0a1
...
@@ -115,7 +115,7 @@ vmod_string_foreach(VRT_CTX, struct VPFX(taskvar_string) *va,
...
@@ -115,7 +115,7 @@ vmod_string_foreach(VRT_CTX, struct VPFX(taskvar_string) *va,
struct
vmod_taskvar_string
*
v
=
struct
vmod_taskvar_string
*
v
=
state_l
(
ctx
,
va
,
sizeof
*
v
);
state_l
(
ctx
,
va
,
sizeof
*
v
);
if
(
v
==
NULL
)
if
(
v
==
NULL
||
s
==
NULL
)
return
;
return
;
CHECK_OBJ
(
v
,
VMOD_TASKVAR_STRING_MAGIC
);
CHECK_OBJ
(
v
,
VMOD_TASKVAR_STRING_MAGIC
);
...
...
src/vtc/vmod_taskvar_foreach.vtc
View file @
98d1e0a1
...
@@ -18,6 +18,7 @@ varnish v1 -vcl {
...
@@ -18,6 +18,7 @@ varnish v1 -vcl {
}
}
sub vcl_recv {
sub vcl_recv {
str.foreach(req.http.null, iter);
str.foreach(req.http.foo, iter);
str.foreach(req.http.foo, iter);
return (synth(200));
return (synth(200));
}
}
...
...
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