]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Fix issue with ucl variables
authorVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 5 Apr 2024 12:14:00 +0000 (13:14 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 5 Apr 2024 12:14:00 +0000 (13:14 +0100)
Pointed by: @crest

contrib/libucl/ucl_parser.c

index b18fd06cee9afbf3d2bee69e73e9dbd871614333..df534df2f838188b7fdb03aebe6d245c18617693 100644 (file)
@@ -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);