diff options
Diffstat (limited to '')
-rw-r--r-- | modules/lua/mod_lua.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/lua/mod_lua.c b/modules/lua/mod_lua.c index 4d02a91a3d..4d5d762427 100644 --- a/modules/lua/mod_lua.c +++ b/modules/lua/mod_lua.c @@ -664,6 +664,11 @@ static int lua_request_rec_hook_harness(request_rec *r, const char *name, int ap ap_log_rerror(APLOG_MARK, APLOG_TRACE4, 0, r, "Lua hook %s:%s for phase %s returned %d", hook_spec->file_name, hook_spec->function_name, name, rc); } + else { + ap_log_rerror(APLOG_MARK, APLOG_CRIT, 0, r, "Lua hook %s:%s for phase %s did not return a numeric value", + hook_spec->file_name, hook_spec->function_name, name); + return HTTP_INTERNAL_SERVER_ERROR; + } if (rc != DECLINED) { ap_lua_release_state(L, spec, r); return rc; |