aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_redis.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-16 13:44:35 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-16 13:44:35 +0000
commit3256178a2433f242f69c55f6eaee36ea314b2f1a (patch)
tree69323a953a69d4d62c9c57e695c6f84ac9527bb8 /src/lua/lua_redis.c
parent5c25ee027e883ea5251958ecee14ea5fc3e68946 (diff)
downloadrspamd-3256178a2433f242f69c55f6eaee36ea314b2f1a.tar.gz
rspamd-3256178a2433f242f69c55f6eaee36ea314b2f1a.zip
Fix couple of issues found by gcc-6
Diffstat (limited to 'src/lua/lua_redis.c')
-rw-r--r--src/lua/lua_redis.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lua/lua_redis.c b/src/lua/lua_redis.c
index cc408244a..dcb1af45a 100644
--- a/src/lua/lua_redis.c
+++ b/src/lua/lua_redis.c
@@ -933,6 +933,12 @@ lua_redis_exec (lua_State *L)
gint ret;
guint i, nret = 0;
+ if (ctx == NULL) {
+ lua_error (L);
+
+ return 1;
+ }
+
if (ctx->async) {
lua_pushstring (L, "Async redis pipelining is not implemented");
lua_error (L);