Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-blobcode
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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-blobcode
Commits
736389e7
Commit
736389e7
authored
Mar 31, 2017
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not panic in fini if init fails
Fixes
#2
parent
4fea5a62
Pipeline
#157
skipped
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletion
+26
-1
r0002.vtc
src/tests/r0002.vtc
+23
-0
vmod_blobcode.c
src/vmod_blobcode.c
+3
-1
No files found.
src/tests/r0002.vtc
0 → 100644
View file @
736389e7
# looks like -*- perl -*-
varnishtest
"vcl.use and .discard, and version string"
server
s1
{
}
-
start
varnish
v1
-
vcl
+
backend
{
import
blobcode
from
"${vmod_topbuild}/src/.libs/libvmod_blobcode.so"
;
}
-
start
varnish
v1
-
errvcl
{
Failed
initialization
}
{
import
blobcode
from
"${vmod_topbuild}/src/.libs/libvmod_blobcode.so"
;
backend
default
{
.
host
=
"127.0.0.1"
;
}
sub
vcl_init
{
return
(
fail
);
new
id
=
blobcode
.
blob
(
IDENTITY
,
"foo"
);
}
}
src/vmod_blobcode.c
View file @
736389e7
...
...
@@ -329,7 +329,9 @@ vmod_blob__fini(struct vmod_blobcode_blob **blobp)
{
struct
vmod_blobcode_blob
*
b
;
AN
(
*
blobp
);
if
(
*
blobp
==
NULL
)
return
;
b
=
*
blobp
;
*
blobp
=
NULL
;
CHECK_OBJ_NOTNULL
(
b
,
VMOD_BLOBCODE_BLOB_MAGIC
);
...
...
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