aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_http.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_http.c')
-rw-r--r--src/lua/lua_http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c
index 1ecfdfd12..99976c238 100644
--- a/src/lua/lua_http.c
+++ b/src/lua/lua_http.c
@@ -63,7 +63,7 @@ lua_check_task (lua_State * L)
{
void *ud = luaL_checkudata (L, 1, "rspamd{task}");
luaL_argcheck (L, ud != NULL, 1, "'task' expected");
- return *((struct worker_task **)ud);
+ return ud ? *((struct worker_task **)ud) : NULL;
}
static void