]> source.dussan.org Git - rspamd.git/commitdiff
Fix xmlrpc lua parsing code. 0.5.2
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Wed, 22 Aug 2012 18:16:50 +0000 (22:16 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Wed, 22 Aug 2012 18:16:50 +0000 (22:16 +0400)
src/lua/lua_xmlrpc.c

index e9b3175179a83feeb089a0b708c565a873f187a1..c49cd137e69e34a06d222cd2e3c61981162169fa 100644 (file)
@@ -419,16 +419,14 @@ lua_xmlrpc_parse_reply (lua_State *L)
 
                g_markup_parse_context_free (ctx);
                if (! res) {
-                       lua_pushboolean (L, FALSE);
-               }
-               else {
-                       lua_pushboolean (L, TRUE);
+                       lua_pushnil (L);
                }
        }
        else {
-               lua_pushboolean (L, FALSE);
+               lua_pushnil (L);
        }
 
+       /* Return table or nil */
        return 1;
 }