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
2bb355c7
Commit
2bb355c7
authored
Aug 25, 2021
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vrt: Fix use-after-release
parent
dea029c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
cache_vrt.c
bin/varnishd/cache/cache_vrt.c
+1
-1
No files found.
bin/varnishd/cache/cache_vrt.c
View file @
2bb355c7
...
...
@@ -627,8 +627,8 @@ VRT_SetHdr(VRT_CTX , VCL_HEADER hs, const char *pfx, VCL_STRANDS s)
p
+=
l
;
}
if
(
FEATURE
(
FEATURE_VALIDATE_HEADERS
)
&&
!
validhdr
(
b
))
{
WS_Release
(
hp
->
ws
,
0
);
VRT_fail
(
ctx
,
"Bad header %s"
,
b
);
WS_Release
(
hp
->
ws
,
0
);
return
;
}
WS_ReleaseP
(
hp
->
ws
,
strchr
(
p
,
'\0'
)
+
1
);
...
...
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