[master] 82081bab1 vre: Check return value when setting limits
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Fri Aug 6 11:51:07 UTC 2021
commit 82081bab1ec376f276a9c04c1714b404b3f66c4f
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Fri Aug 6 11:42:59 2021 +0200
vre: Check return value when setting limits
Spotted by flexelint.
diff --git a/lib/libvarnish/vre.c b/lib/libvarnish/vre.c
index ca3029d3f..6a2040823 100644
--- a/lib/libvarnish/vre.c
+++ b/lib/libvarnish/vre.c
@@ -156,8 +156,8 @@ vre_limit(const vre_t *code, const volatile struct vre_limits *lim)
/* XXX: not reentrant */
AN(code->re_ctx);
- pcre2_set_match_limit(code->re_ctx, lim->match);
- pcre2_set_depth_limit(code->re_ctx, lim->depth);
+ AZ(pcre2_set_match_limit(code->re_ctx, lim->match));
+ AZ(pcre2_set_depth_limit(code->re_ctx, lim->depth));
}
vre_t *
More information about the varnish-commit
mailing list