Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-vslp
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
libvmod-vslp
Commits
d9060fc7
Commit
d9060fc7
authored
Sep 12, 2016
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dont panic for NULL backend
parent
f637f06a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
vmod_shard.c
src/vmod_shard.c
+7
-1
No files found.
src/vmod_shard.c
View file @
d9060fc7
...
@@ -127,7 +127,13 @@ vmod_shard_add_backend(VRT_CTX, struct vmod_shard_shard *vshard,
...
@@ -127,7 +127,13 @@ vmod_shard_add_backend(VRT_CTX, struct vmod_shard_shard *vshard,
VCL_BACKEND
be
,
VCL_STRING
ident
,
VCL_DURATION
rampup
)
VCL_BACKEND
be
,
VCL_STRING
ident
,
VCL_DURATION
rampup
)
{
{
CHECK_OBJ_NOTNULL
(
vshard
,
VMOD_SHARD_SHARD_MAGIC
);
CHECK_OBJ_NOTNULL
(
vshard
,
VMOD_SHARD_SHARD_MAGIC
);
AN
(
be
);
if
(
be
==
NULL
)
{
shard_err0
(
ctx
,
vshard
->
shardd
,
".backend_add() NULL backend given"
);
return
0
;
}
return
shardcfg_add_backend
(
ctx
,
priv
,
vshard
->
shardd
,
return
shardcfg_add_backend
(
ctx
,
priv
,
vshard
->
shardd
,
be
,
ident
,
rampup
);
be
,
ident
,
rampup
);
}
}
...
...
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