1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-05 16:55:50 +03:00

mod_lua: The current way of getting the authz provider name doesn't seem to work. This approach should fix that.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1367504 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Daniel Gruno
2012-07-31 11:47:04 +00:00
parent 906dbb5154
commit ce1213a92d

View File

@@ -1006,8 +1006,7 @@ static const char *lua_authz_parse(cmd_parms *cmd, const char *require_line,
const char *provider_name;
lua_authz_provider_spec *spec;
apr_pool_userdata_get((void**)&provider_name, AUTHZ_PROVIDER_NAME_NOTE,
cmd->temp_pool);
provider_name = (const char*) ap_getword(cmd->temp_pool, &cmd->directive->args, ' ');
ap_assert(provider_name != NULL);
spec = apr_hash_get(lua_authz_providers, provider_name, APR_HASH_KEY_STRING);