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
0ecefa8f
Commit
0ecefa8f
authored
Oct 18, 2023
by
Dag Haavi Finstad
Committed by
Dridi Boukelmoune
Oct 18, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vmod_h2: VRT_fail if called outside of client context
parent
cfba2637
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
vmod_h2.c
lib/libvmod_h2/vmod_h2.c
+6
-1
No files found.
lib/libvmod_h2/vmod_h2.c
View file @
0ecefa8f
...
...
@@ -43,7 +43,12 @@ h2get(VRT_CTX)
uintptr_t
*
up
;
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
CHECK_OBJ_NOTNULL
(
ctx
->
req
,
REQ_MAGIC
);
// $Restrict client
if
(
ctx
->
req
==
NULL
)
{
VRT_fail
(
ctx
,
"vmod_h2 can only be called from client-side VCL."
);
return
(
NULL
);
}
CHECK_OBJ_NOTNULL
(
ctx
->
req
,
REQ_MAGIC
);
if
(
ctx
->
req
->
transport
!=
&
H2_transport
)
return
(
NULL
);
AZ
(
SES_Get_proto_priv
(
ctx
->
req
->
sp
,
&
up
));
...
...
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