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
984f145f
Commit
984f145f
authored
Aug 23, 2016
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Align ban lumps
should fix #2050
parent
bab71a1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
cache_ban.c
bin/varnishd/cache/cache_ban.c
+2
-1
cache_ban_build.c
bin/varnishd/cache/cache_ban_build.c
+1
-1
No files found.
bin/varnishd/cache/cache_ban.c
View file @
984f145f
...
...
@@ -183,7 +183,8 @@ ban_get_lump(const uint8_t **bs)
while
(
**
bs
==
0xff
)
*
bs
+=
1
;
ln
=
vbe32dec
(
*
bs
);
*
bs
+=
4
;
*
bs
+=
PRNDUP
(
sizeof
(
uint32_t
));
assert
(
PAOK
(
*
bs
));
r
=
(
const
void
*
)
*
bs
;
*
bs
+=
ln
;
return
(
r
);
...
...
bin/varnishd/cache/cache_ban_build.c
View file @
984f145f
...
...
@@ -101,7 +101,7 @@ BAN_Abandon(struct ban_proto *bp)
static
void
ban_add_lump
(
const
struct
ban_proto
*
bp
,
const
void
*
p
,
uint32_t
len
)
{
uint8_t
buf
[
sizeof
len
];
uint8_t
buf
[
PRNDUP
(
sizeof
len
)
];
buf
[
0
]
=
0xff
;
while
(
VSB_len
(
bp
->
vsb
)
&
PALGN
)
...
...
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