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
86032715
Commit
86032715
authored
May 12, 2020
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reference the correct transition in VRT_synth()
parent
b8efd99a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
cache_vrt.c
bin/varnishd/cache/cache_vrt.c
+9
-6
No files found.
bin/varnishd/cache/cache_vrt.c
View file @
86032715
...
...
@@ -59,23 +59,26 @@ const void * const vrt_magic_string_unset = &vrt_magic_string_unset;
VCL_VOID
VRT_synth
(
VRT_CTX
,
VCL_INT
code
,
VCL_STRING
reason
)
{
const
char
*
ret
;
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
assert
(
ctx
->
req
!=
NULL
||
ctx
->
bo
!=
NULL
);
ret
=
ctx
->
req
==
NULL
?
"error"
:
"synth"
;
if
(
code
<
0
)
{
VRT_fail
(
ctx
,
"return(
synth
()) status code (%jd) is negative"
,
(
intmax_t
)
code
);
VRT_fail
(
ctx
,
"return(
%s
()) status code (%jd) is negative"
,
ret
,
(
intmax_t
)
code
);
return
;
}
if
(
code
>
65535
)
{
VRT_fail
(
ctx
,
"return(
synth
()) status code (%jd) > 65535"
,
(
intmax_t
)
code
);
VRT_fail
(
ctx
,
"return(
%s
()) status code (%jd) > 65535"
,
ret
,
(
intmax_t
)
code
);
return
;
}
if
((
code
%
1000
)
<
100
)
{
VRT_fail
(
ctx
,
"illegal return(
synth
()) status code (%jd) (..0##)"
,
(
intmax_t
)
code
);
"illegal return(
%s
()) status code (%jd) (..0##)"
,
ret
,
(
intmax_t
)
code
);
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