summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_redis.c
diff options
context:
space:
mode:
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);