diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-02-21 11:59:12 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-02-21 11:59:12 +0000 |
commit | 47772280af710ec922ad7d8fa6359df79fea10e2 (patch) | |
tree | ef008ae59ab67e4e6b02aa7001c55fc13404d8ea /src | |
parent | 742feb0c89cb6d0cb0d61612ade2cca00c3dc362 (diff) | |
download | rspamd-47772280af710ec922ad7d8fa6359df79fea10e2.tar.gz rspamd-47772280af710ec922ad7d8fa6359df79fea10e2.zip |
[Minor] Fix sync connect return values
Diffstat (limited to 'src')
-rw-r--r-- | src/lua/lua_redis.c | 3 |
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; } /*** |