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
5df35e87
Commit
5df35e87
authored
Jul 07, 2016
by
Lasse Karstensen
Committed by
Pål Hermunn Johansen
Sep 09, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop incorrectly reporting overflow on zeroed ws.
Ref: #2008
parent
b392d910
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
cache_panic.c
bin/varnishd/cache/cache_panic.c
+1
-1
cache_ws.c
bin/varnishd/cache/cache_ws.c
+1
-0
No files found.
bin/varnishd/cache/cache_panic.c
View file @
5df35e87
...
@@ -116,7 +116,7 @@ pan_ws(struct vsb *vsb, const struct ws *ws)
...
@@ -116,7 +116,7 @@ pan_ws(struct vsb *vsb, const struct ws *ws)
VSB_printf
(
vsb
,
"ws = %p {
\n
"
,
ws
);
VSB_printf
(
vsb
,
"ws = %p {
\n
"
,
ws
);
VSB_indent
(
vsb
,
2
);
VSB_indent
(
vsb
,
2
);
PAN_CheckMagic
(
vsb
,
ws
,
WS_MAGIC
);
PAN_CheckMagic
(
vsb
,
ws
,
WS_MAGIC
);
if
(
!
(
ws
->
id
[
0
]
&
0x20
))
if
(
ws
->
id
[
0
]
!=
'\0'
&&
(
!
(
ws
->
id
[
0
]
&
0x20
)
))
VSB_printf
(
vsb
,
"OVERFLOWED "
);
VSB_printf
(
vsb
,
"OVERFLOWED "
);
VSB_printf
(
vsb
,
"id =
\"
%s
\"
,
\n
"
,
ws
->
id
);
VSB_printf
(
vsb
,
"id =
\"
%s
\"
,
\n
"
,
ws
->
id
);
VSB_printf
(
vsb
,
"{s,f,r,e} = {%p"
,
ws
->
s
);
VSB_printf
(
vsb
,
"{s,f,r,e} = {%p"
,
ws
->
s
);
...
...
bin/varnishd/cache/cache_ws.c
View file @
5df35e87
...
@@ -254,6 +254,7 @@ int
...
@@ -254,6 +254,7 @@ int
WS_Overflowed
(
const
struct
ws
*
ws
)
WS_Overflowed
(
const
struct
ws
*
ws
)
{
{
CHECK_OBJ_NOTNULL
(
ws
,
WS_MAGIC
);
CHECK_OBJ_NOTNULL
(
ws
,
WS_MAGIC
);
AN
(
ws
->
id
[
0
]);
if
(
ws
->
id
[
0
]
&
0x20
)
if
(
ws
->
id
[
0
]
&
0x20
)
return
(
0
);
return
(
0
);
...
...
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