aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 b845b6d49..7688d8cfd 100644
--- a/src/lua/lua_redis.c
+++ b/src/lua/lua_redis.c
@@ -1124,6 +1124,7 @@ lua_redis_connect_sync (lua_State *L)
return 2;
}
+ lua_pushboolean (L, TRUE);
pctx = lua_newuserdata (L, sizeof (ctx));
*pctx = ctx;
rspamd_lua_setclass (L, "rspamd{redis}", -1);
@@ -1139,7 +1140,7 @@ lua_redis_connect_sync (lua_State *L)
return 2;
}
- return 1;
+ return 2;
}
/***