]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Revert "[Fix] Fix returning of REDIS_NIL"
authorAndrew Lewis <nerf@judo.za.org>
Fri, 19 Aug 2016 11:43:32 +0000 (13:43 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Fri, 19 Aug 2016 11:43:32 +0000 (13:43 +0200)
This reverts commit ca2374d88c09759f2a46e68801e5eb557eee7d3b.

src/lua/lua_redis.c

index 1fc8e1777469335f6ef7465db6c6ef3172510aa7..c35d9614bb058fbd615d371087144bbacb182d74 100644 (file)
@@ -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: