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
cc8740e7
Unverified
Commit
cc8740e7
authored
Apr 04, 2020
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
signedness fixes
reported by flexelint
parent
ea5917c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
cache_proxy_proto.c
bin/varnishd/proxy/cache_proxy_proto.c
+3
-4
vcc_acl.c
lib/libvcc/vcc_acl.c
+1
-1
No files found.
bin/varnishd/proxy/cache_proxy_proto.c
View file @
cc8740e7
...
...
@@ -320,7 +320,6 @@ VPX_tlv(const struct req *req, int typ, void **dst, int *len)
static
int
vpx_proto2
(
const
struct
worker
*
wrk
,
struct
req
*
req
)
{
int
l
,
hdr_len
;
uintptr_t
*
up
;
uint16_t
tlv_len
;
const
uint8_t
*
p
,
*
ap
,
*
pp
;
...
...
@@ -333,7 +332,7 @@ vpx_proto2(const struct worker *wrk, struct req *req)
char
pb
[
VTCP_PORTBUFSIZE
];
struct
vpx_tlv_iter
vpi
[
1
],
vpi2
[
1
];
struct
vpx_tlv
*
tlv
;
unsigned
flen
,
alen
;
unsigned
l
,
hdr_len
,
flen
,
alen
;
unsigned
const
plen
=
2
,
aoff
=
16
;
CHECK_OBJ_NOTNULL
(
wrk
,
WORKER_MAGIC
);
...
...
@@ -343,7 +342,7 @@ vpx_proto2(const struct worker *wrk, struct req *req)
assert
(
req
->
htc
->
rxbuf_e
-
req
->
htc
->
rxbuf_b
>=
16L
);
l
=
vbe16dec
(
req
->
htc
->
rxbuf_b
+
14
);
hdr_len
=
l
+
16L
;
assert
(
req
->
htc
->
rxbuf_e
-
req
->
htc
->
rxbuf_b
>=
hdr_len
);
assert
(
req
->
htc
->
rxbuf_e
>=
req
->
htc
->
rxbuf_b
+
hdr_len
);
HTC_RxPipeline
(
req
->
htc
,
req
->
htc
->
rxbuf_b
+
hdr_len
);
WS_Rollback
(
req
->
ws
,
0
);
p
=
(
const
void
*
)
req
->
htc
->
rxbuf_b
;
...
...
@@ -398,7 +397,7 @@ vpx_proto2(const struct worker *wrk, struct req *req)
if
(
l
<
flen
)
{
VSL
(
SLT_ProxyGarbage
,
req
->
sp
->
vxid
,
"PROXY2: Ignoring short %s addresses (%
d
)"
,
"PROXY2: Ignoring short %s addresses (%
u
)"
,
pfam
==
AF_INET
?
"IPv4"
:
"IPv6"
,
l
);
return
(
0
);
}
...
...
lib/libvcc/vcc_acl.c
View file @
cc8740e7
...
...
@@ -115,7 +115,7 @@ vcc_acl_chk(struct vcc *tl, const struct acl_e *ae, const int l,
assert
(
ll
>=
0
);
m
%=
8
;
if
(
m
&&
(
*
p
<<
m
&
0xff
)
!=
0
)
{
if
(
m
&&
(
*
p
<<
m
&
UINT8_C
(
0xff
)
)
!=
0
)
{
ret
=
1
;
m
=
0xff00
>>
m
;
*
p
&=
m
;
...
...
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