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
f65f7148
Unverified
Commit
f65f7148
authored
Mar 27, 2021
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vcc_acl: Create template acl_e on the stack
We only ever insert copies into the tree in vcc_acl_add_entry()
parent
aff516b7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
vcc_acl.c
lib/libvcc/vcc_acl.c
+2
-4
No files found.
lib/libvcc/vcc_acl.c
View file @
f65f7148
...
...
@@ -350,10 +350,10 @@ vcc_acl_try_netnotation(struct vcc *tl, struct acl_e *ae)
static
void
vcc_acl_entry
(
struct
vcc
*
tl
)
{
struct
acl_e
*
ae
;
struct
acl_e
ae
[
1
]
;
char
*
sl
,
*
e
;
ALLOC
_OBJ
(
ae
,
VCC_ACL_E_MAGIC
);
INIT
_OBJ
(
ae
,
VCC_ACL_E_MAGIC
);
if
(
tl
->
t
->
tok
==
'!'
)
{
ae
->
not
=
1
;
...
...
@@ -385,14 +385,12 @@ vcc_acl_entry(struct vcc *tl)
if
(
*
e
!=
'\0'
)
{
VSB_cat
(
tl
->
sb
,
".../mask is not numeric.
\n
"
);
vcc_ErrWhere
(
tl
,
ae
->
t_addr
);
FREE_OBJ
(
ae
);
return
;
}
ae
->
t_mask
=
ae
->
t_addr
;
if
(
tl
->
t
->
tok
==
'/'
)
{
VSB_cat
(
tl
->
sb
,
"/mask only allowed once.
\n
"
);
vcc_ErrWhere
(
tl
,
tl
->
t
);
FREE_OBJ
(
ae
);
return
;
}
}
else
if
(
tl
->
t
->
tok
==
'/'
)
{
...
...
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