From: Andrew Lewis Date: Fri, 19 Aug 2016 11:43:32 +0000 (+0200) Subject: Revert "[Fix] Fix returning of REDIS_NIL" X-Git-Tag: 1.3.4~23^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=922f0e898ab47c99188713f2f2e34db675d9d6c2;p=thirdparty%2Frspamd.git Revert "[Fix] Fix returning of REDIS_NIL" This reverts commit ca2374d88c09759f2a46e68801e5eb557eee7d3b. --- diff --git a/src/lua/lua_redis.c b/src/lua/lua_redis.c index 1fc8e17774..c35d9614bb 100644 --- a/src/lua/lua_redis.c +++ b/src/lua/lua_redis.c @@ -271,7 +271,8 @@ lua_redis_push_reply (lua_State *L, const redisReply *r) lua_pushnumber (L, r->integer); break; case REDIS_REPLY_NIL: - lua_pushnil (L); + /* XXX: not the best approach */ + lua_newuserdata (L, sizeof (gpointer)); break; case REDIS_REPLY_STRING: case REDIS_REPLY_STATUS: