]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix UCL parsing of the multiline strings
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 25 Apr 2019 11:23:14 +0000 (12:23 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 25 Apr 2019 11:23:14 +0000 (12:23 +0100)
contrib/libucl/ucl_parser.c

index 6a53fe805f5ba80cb72855b260bf7bfdbb382fea..7313b28a3753bcb407f382b9b97b9f941992edbe 100644 (file)
@@ -1810,8 +1810,8 @@ ucl_parse_value (struct ucl_parser *parser, struct ucl_chunk *chunk)
                                        }
                                        if (*p =='\n') {
                                                /* Set chunk positions and start multiline parsing */
+                                               chunk->remain -= p - c + 1;
                                                c += 2;
-                                               chunk->remain -= p - c;
                                                chunk->pos = p + 1;
                                                chunk->column = 0;
                                                chunk->line ++;