From: Vsevolod Stakhov Date: Mon, 30 Sep 2013 15:09:34 +0000 (+0100) Subject: Fix state management for arrays. X-Git-Tag: 0.6.0~158 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1f9b24b312c6b7b6624c9efbdc59a282da82d24f;p=rspamd.git Fix state management for arrays. --- diff --git a/src/rcl/rcl_parser.c b/src/rcl/rcl_parser.c index 80061f03f..713330ca8 100644 --- a/src/rcl/rcl_parser.c +++ b/src/rcl/rcl_parser.c @@ -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 ++;