1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-07 04:02:58 +03:00

An uninitialized pointer in ap_lua_mapped_handler_spec was causing

seg faults in lua.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@939980 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Daniel Earl Poirier
2010-05-01 11:43:55 +00:00
parent dfe544ca49
commit f07bb6b918

View File

@@ -58,7 +58,7 @@ AP_LUA_DECLARE(apr_status_t) ap_lua_map_handler(ap_lua_dir_cfg *cfg,
ap_regex_t *uri_pattern;
apr_status_t rv;
ap_lua_mapped_handler_spec *handler =
apr_palloc(cfg->pool, sizeof(ap_lua_mapped_handler_spec));
apr_pcalloc(cfg->pool, sizeof(ap_lua_mapped_handler_spec));
handler->uri_pattern = NULL;
handler->function_name = NULL;
@@ -81,7 +81,7 @@ static int cfg_lua_map_handler(lua_State *L)
{
ap_lua_dir_cfg *cfg = check_dir_config(L, 1);
ap_lua_mapped_handler_spec *handler =
apr_palloc(cfg->pool, sizeof(ap_lua_mapped_handler_spec));
apr_pcalloc(cfg->pool, sizeof(ap_lua_mapped_handler_spec));
handler->uri_pattern = NULL;
handler->function_name = NULL;