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
8bc9a680
Commit
8bc9a680
authored
Apr 16, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better fix for #1126
parent
35475f8c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
vcc_acl.c
lib/libvcl/vcc_acl.c
+5
-4
No files found.
lib/libvcl/vcc_acl.c
View file @
8bc9a680
...
@@ -101,7 +101,10 @@ vcc_acl_add_entry(struct vcc *tl, const struct acl_e *ae, int l,
...
@@ -101,7 +101,10 @@ vcc_acl_add_entry(struct vcc *tl, const struct acl_e *ae, int l,
if
(
fam
==
PF_INET
&&
ae
->
mask
>
32
)
{
if
(
fam
==
PF_INET
&&
ae
->
mask
>
32
)
{
VSB_printf
(
tl
->
sb
,
VSB_printf
(
tl
->
sb
,
"Too wide mask (%u) for IPv4 address"
,
ae
->
mask
);
"Too wide mask (%u) for IPv4 address"
,
ae
->
mask
);
if
(
ae
->
t_mask
!=
NULL
)
vcc_ErrWhere
(
tl
,
ae
->
t_mask
);
vcc_ErrWhere
(
tl
,
ae
->
t_mask
);
else
vcc_ErrWhere
(
tl
,
ae
->
t_addr
);
return
;
return
;
}
}
if
(
fam
==
PF_INET6
&&
ae
->
mask
>
128
)
{
if
(
fam
==
PF_INET6
&&
ae
->
mask
>
128
)
{
...
@@ -263,10 +266,8 @@ vcc_acl_try_netnotation(struct vcc *tl, struct acl_e *ae)
...
@@ -263,10 +266,8 @@ vcc_acl_try_netnotation(struct vcc *tl, struct acl_e *ae)
return
(
0
);
return
(
0
);
p
+=
k
+
1
;
p
+=
k
+
1
;
}
}
if
(
ae
->
t_mask
==
NULL
)
{
if
(
ae
->
t_mask
==
NULL
)
ae
->
mask
=
8
+
8
*
i
;
ae
->
mask
=
8
+
8
*
i
;
ae
->
t_mask
=
ae
->
t_addr
;
}
vcc_acl_add_entry
(
tl
,
ae
,
4
,
b
,
AF_INET
);
vcc_acl_add_entry
(
tl
,
ae
,
4
,
b
,
AF_INET
);
return
(
1
);
return
(
1
);
}
}
...
...
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