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
60a6aba6
Commit
60a6aba6
authored
Sep 04, 2018
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deref the objhead if we don't return a busy object.
Most of the heavy lifting by: slink Fixes: #2760, #2754, #2654
parent
8ec48cf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
cache_hash.c
bin/varnishd/cache/cache_hash.c
+1
-1
No files found.
bin/varnishd/cache/cache_hash.c
View file @
60a6aba6
...
...
@@ -460,7 +460,7 @@ HSH_Lookup(struct req *req, struct objcore **ocp, struct objcore **bocp,
}
Lck_Unlock
(
&
oh
->
mtx
);
*
ocp
=
oc
;
if
(
retval
==
HSH_HIT
)
if
(
*
bocp
==
NULL
)
assert
(
HSH_DerefObjHead
(
wrk
,
&
oh
));
return
(
retval
);
}
...
...
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