Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-re2
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-re2
Commits
6470c8b8
Unverified
Commit
6470c8b8
authored
Sep 13, 2021
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust to varnish-cache api changes
parent
436b71c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
vmod_re2.c
src/vmod_re2.c
+1
-1
vmod_re2.h
src/vmod_re2.h
+3
-0
No files found.
src/vmod_re2.c
View file @
6470c8b8
...
...
@@ -96,7 +96,7 @@ match(VRT_CTX, vre2 * restrict vre2, VCL_STRING restrict subject,
snap
=
WS_Snapshot
(
ctx
->
ws
);
if
(
!
never_capture
)
{
ngroups
++
;
if
(
!
WS_
Inside
(
ctx
->
ws
,
subject
,
subject
+
len
+
1
))
if
(
!
WS_
Allocated
(
ctx
->
ws
,
subject
,
len
+
1
))
if
((
text
=
WS_Copy
(
ctx
->
ws
,
subject
,
len
+
1
))
==
NULL
)
{
VERRNOMEM
(
ctx
,
ERR_PREFIX
"copying subject"
,
...
...
src/vmod_re2.h
View file @
6470c8b8
...
...
@@ -59,5 +59,8 @@ struct vmod_re2_regex {
unsigned
never_capture
;
};
#define WS_Assert_Allocated(ws, ptr, len) \
AN(WS_Allocated(ws, ptr, len))
/* Defined in vmod_re2.c */
extern
const
char
*
const
rewrite_name
[];
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