summaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-08-19 13:43:32 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-08-19 13:43:32 +0200
commit922f0e898ab47c99188713f2f2e34db675d9d6c2 (patch)
tree5654ffbb706c091ec5864b6844237d03d4665ade /src/lua
parent2a6289489cb175e41b62677bc61ce897b3c103a5 (diff)
downloadrspamd-922f0e898ab47c99188713f2f2e34db675d9d6c2.tar.gz
rspamd-922f0e898ab47c99188713f2f2e34db675d9d6c2.zip
Revert "[Fix] Fix returning of REDIS_NIL"
This reverts commit ca2374d88c09759f2a46e68801e5eb557eee7d3b.
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_redis.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lua/lua_redis.c b/src/lua/lua_redis.c
index 1fc8e1777..c35d9614b 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: