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
e4fa9f4e
Commit
e4fa9f4e
authored
Jun 13, 2018
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remember to set the REQ_DONE state when we unset the bereq.body;
Found by: fgs & ASAN
parent
7cfe66d4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
cache_vrt_var.c
bin/varnishd/cache/cache_vrt_var.c
+2
-0
No files found.
bin/varnishd/cache/cache_vrt_var.c
View file @
e4fa9f4e
...
@@ -499,6 +499,8 @@ VRT_u_bereq_body(VRT_CTX)
...
@@ -499,6 +499,8 @@ VRT_u_bereq_body(VRT_CTX)
if
(
ctx
->
bo
->
req
!=
NULL
)
{
if
(
ctx
->
bo
->
req
!=
NULL
)
{
CHECK_OBJ_NOTNULL
(
ctx
->
bo
->
req
,
REQ_MAGIC
);
CHECK_OBJ_NOTNULL
(
ctx
->
bo
->
req
,
REQ_MAGIC
);
ctx
->
bo
->
req
=
NULL
;
ctx
->
bo
->
req
=
NULL
;
ObjSetState
(
ctx
->
bo
->
wrk
,
ctx
->
bo
->
fetch_objcore
,
BOS_REQ_DONE
);
http_Unset
(
ctx
->
bo
->
bereq
,
H_Content_Length
);
http_Unset
(
ctx
->
bo
->
bereq
,
H_Content_Length
);
}
}
}
}
...
...
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