aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libucl
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-04-05 13:14:00 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-04-05 13:14:00 +0100
commit0f9972509407770891054be33a70c4ff8af96fa3 (patch)
tree091a7a33aec4c1b1fb19b0d7425d940b366de0af /contrib/libucl
parent348158d6a7250d530e453e8a2148844454bef710 (diff)
downloadrspamd-0f9972509407770891054be33a70c4ff8af96fa3.tar.gz
rspamd-0f9972509407770891054be33a70c4ff8af96fa3.zip
[Minor] Fix issue with ucl variables
Pointed by: @crest
Diffstat (limited to 'contrib/libucl')
-rw-r--r--contrib/libucl/ucl_parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/libucl/ucl_parser.c b/contrib/libucl/ucl_parser.c
index b18fd06ce..df534df2f 100644
--- a/contrib/libucl/ucl_parser.c
+++ b/contrib/libucl/ucl_parser.c
@@ -348,6 +348,7 @@ ucl_check_variable_safe (struct ucl_parser *parser, const char *ptr, size_t rema
/* Call generic handler */
if (parser->var_handler (ptr, remain, &dst, &dstlen, &need_free,
parser->var_data)) {
+ *out_len = dstlen;
*found = true;
if (need_free) {
free (dst);