]> source.dussan.org Git - rspamd.git/commitdiff
Fix state management for arrays.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 30 Sep 2013 15:09:34 +0000 (16:09 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 30 Sep 2013 15:09:34 +0000 (16:09 +0100)
src/rcl/rcl_parser.c

index 80061f03f2bf34c477a5fb83a536eef4ee4dea9c..713330ca80805aaa1692adbdfac36a535ac63bb9 100644 (file)
@@ -1124,7 +1124,7 @@ rspamd_cl_state_machine (struct rspamd_cl_parser *parser, GError **err)
                                p = chunk->pos;
                                obj = rspamd_cl_object_new ();
                                if (*p == '[') {
-                                       parser->state = RSPAMD_RCL_STATE_ARRAY;
+                                       parser->state = RSPAMD_RCL_STATE_VALUE;
                                        obj->type = RSPAMD_CL_ARRAY;
                                        rspamd_cl_chunk_skipc (chunk, *p);
                                        p ++;