]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix xmlrpc state machine
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 17 Jan 2018 13:24:20 +0000 (13:24 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 17 Jan 2018 13:24:20 +0000 (13:24 +0000)
src/lua/lua_xmlrpc.c

index 2f129f37d10f36b668e7af0200b82f5243e24939..9a99b1afc8f720211a4fe4aab77a0a88a237f0ce 100644 (file)
@@ -472,11 +472,11 @@ xmlrpc_end_element (GMarkupParseContext *context,
        case read_array_value:
                /* Got tag data */
                if (g_ascii_strcasecmp (name, "data") == 0) {
-                       ud->parser_state = 14;
+                       ud->parser_state = read_array;
                }
                else {
                        /* Error state */
-                       ud->parser_state = 99;
+                       ud->parser_state = error_state;
                }
                break;
        case read_array_element: