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
f7bd2265
Commit
f7bd2265
authored
Mar 10, 2022
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vcc: Remove spurious assertion
Refs #3788
parent
03f019ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
v00016.vtc
bin/varnishtest/tests/v00016.vtc
+6
-0
vcc_expr.c
lib/libvcc/vcc_expr.c
+0
-2
No files found.
bin/varnishtest/tests/v00016.vtc
View file @
f7bd2265
...
...
@@ -101,6 +101,12 @@ varnish v1 -errvcl {Expected ')' got '-'} {
}
}
varnish v1 -errvcl {Expression has type BODY, expected BOOL} {
sub vcl_synth {
if (resp.body) { }
}
}
varnish v1 -errvcl {Expression has type directors.shard, expected ACL} {
import directors;
backend b none;
...
...
lib/libvcc/vcc_expr.c
View file @
f7bd2265
...
...
@@ -1419,8 +1419,6 @@ vcc_expr0(struct vcc *tl, struct expr **e, vcc_type_t fmt)
vcc_expr_cor
(
tl
,
e
,
fmt
);
ERRCHK
(
tl
);
assert
((
*
e
)
->
fmt
!=
BODY
);
if
((
*
e
)
->
fmt
==
fmt
)
return
;
...
...
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