From: Vsevolod Stakhov Date: Wed, 22 Aug 2012 18:16:50 +0000 (+0400) Subject: Fix xmlrpc lua parsing code. X-Git-Tag: 0.5.2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=054fd3b8cfc91983c90d5dd24ef1bd89d520722c;p=thirdparty%2Frspamd.git Fix xmlrpc lua parsing code. --- diff --git a/src/lua/lua_xmlrpc.c b/src/lua/lua_xmlrpc.c index e9b3175179..c49cd137e6 100644 --- a/src/lua/lua_xmlrpc.c +++ b/src/lua/lua_xmlrpc.c @@ -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; }