Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
87357eee
Commit
87357eee
authored
Apr 16, 2012
by
Poul-Henning Kamp
Committed by
Tollef Fog Heen
May 24, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better fix for #1126
parent
b97fc0cd
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 @
87357eee
...
@@ -103,7 +103,10 @@ vcc_acl_add_entry(struct vcc *tl, const struct acl_e *ae, int l,
...
@@ -103,7 +103,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
)
{
...
@@ -265,10 +268,8 @@ vcc_acl_try_netnotation(struct vcc *tl, struct acl_e *ae)
...
@@ -265,10 +268,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