Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-backend_dyn
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
Carl P. Corliss
libvmod-backend_dyn
Commits
49bcb620
Commit
49bcb620
authored
Nov 08, 2015
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add some safety checks
parent
5ce70a2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
vmod.c
src/vmod.c
+8
-2
No files found.
src/vmod.c
View file @
49bcb620
...
...
@@ -68,11 +68,16 @@ free_belist(void *priv)
struct
belist
*
belist
;
struct
bentry
*
bentry
;
CAST_OBJ_NOTNULL
(
belist
,
priv
,
BELIST_MAGIC
);
if
(
priv
==
NULL
)
return
;
CAST_OBJ
(
belist
,
priv
,
BELIST_MAGIC
);
AN
(
belist
->
behead
);
bentry
=
VTAILQ_FIRST
(
belist
->
behead
);
while
(
bentry
!=
NULL
)
{
struct
bentry
*
next
=
VTAILQ_NEXT
(
bentry
,
bentry
);
struct
bentry
*
next
;
CHECK_OBJ
(
bentry
,
BENTRY_MAGIC
);
next
=
VTAILQ_NEXT
(
bentry
,
bentry
);
FREE_OBJ
(
bentry
);
bentry
=
next
;
}
...
...
@@ -211,6 +216,7 @@ vmod_create(VRT_CTX, struct vmod_priv *priv, VCL_STRING vcl_name,
struct
backend
*
backend
;
struct
tcp_pool
*
tpool
;
CHECK_OBJ
(
probe
,
VRT_BACKEND_PROBE_MAGIC
);
CAST_OBJ_NOTNULL
(
backend
,
dir
->
priv
,
BACKEND_MAGIC
);
AZ
(
backend
->
probe
);
tpool
=
VBT_Ref
(
sa4
,
sa6
);
...
...
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