httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r1489199 - /httpd/httpd/trunk/modules/lua/lua_request.c
Date Mon, 03 Jun 2013 22:05:11 GMT
Author: fuankg
Date: Mon Jun  3 22:05:07 2013
New Revision: 1489199

URL: http://svn.apache.org/r1489199
Log:
Fixed crash condition when r.module_info() is called
for modules which dont have directives.

Modified:
    httpd/httpd/trunk/modules/lua/lua_request.c

Modified: httpd/httpd/trunk/modules/lua/lua_request.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/lua/lua_request.c?rev=1489199&r1=1489198&r2=1489199&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/lua/lua_request.c (original)
+++ httpd/httpd/trunk/modules/lua/lua_request.c Mon Jun  3 22:05:07 2013
@@ -1236,7 +1236,7 @@ static int lua_ap_module_info(lua_State 
     luaL_checktype(L, 1, LUA_TSTRING);
     moduleName = lua_tostring(L, 1);
     mod = ap_find_linked_module(moduleName);
-    if (mod) {
+    if (mod && mod->cmds) {
         const command_rec *cmd;
         lua_newtable(L);
         lua_pushstring(L, "commands");



Mime
View raw message