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
a8d74646
Commit
a8d74646
authored
Sep 01, 2020
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust to changed WS_* interface.
parent
51f9d6e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
set.c
src/set.c
+1
-1
vmod_re2.c
src/vmod_re2.c
+2
-2
No files found.
src/set.c
View file @
a8d74646
...
...
@@ -383,8 +383,8 @@ vmod_set_match(VRT_CTX, struct vmod_re2_set *set, VCL_STRING subject)
CAST_OBJ
(
task
,
priv
->
priv
,
TASK_SET_MATCH_MAGIC
);
}
buf
=
WS_Front
(
ctx
->
ws
);
buflen
=
WS_ReserveAll
(
ctx
->
ws
);
buf
=
WS_Reservation
(
ctx
->
ws
);
if
((
err
=
vre2set_match
(
set
->
set
,
subject
,
&
match
,
buf
,
buflen
,
&
task
->
nmatches
,
&
errkind
))
!=
NULL
)
{
VERR
(
ctx
,
ERR_PREFIX
"%s"
,
set
->
vcl_name
,
subject
,
err
);
...
...
src/vmod_re2.c
View file @
a8d74646
...
...
@@ -197,8 +197,8 @@ rewritef(VRT_CTX, vre2 * restrict vre2, const rewrite_e mode, VCL_STRING text,
char
*
ret
;
const
char
*
err
;
ret
=
WS_Front
(
ctx
->
ws
);
bytes
=
WS_ReserveAll
(
ctx
->
ws
);
ret
=
WS_Reservation
(
ctx
->
ws
);
if
(
bytes
==
0
)
{
VERR
(
ctx
,
ERR_PREFIX
"workspace overflow"
,
rewrite_name
[
mode
],
text
,
rewrite
,
fallback
);
...
...
@@ -755,8 +755,8 @@ vmod_quotemeta(VRT_CTX, VCL_STRING unquoted, VCL_STRING fallback)
const
char
*
err
;
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
ret
=
WS_Front
(
ctx
->
ws
);
bytes
=
WS_ReserveAll
(
ctx
->
ws
);
ret
=
WS_Reservation
(
ctx
->
ws
);
if
(
bytes
==
0
)
{
VERR
(
ctx
,
ERR_PREFIX
"workspace overflow"
,
unquoted
,
fallback
);
WS_Release
(
ctx
->
ws
,
0
);
...
...
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