Commit 7056d2fe authored by Chris Darroch's avatar Chris Darroch
Browse files

prevent crash when authz provider not registered prior to use in alias


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@709746 13f79535-47bb-0310-9956-ffa450edef68
parent c514dda8
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -274,6 +274,14 @@ static const char *authz_require_alias_section(cmd_parms *cmd, void *mconfig,
            ap_lookup_provider(AUTHZ_PROVIDER_GROUP, provider_name,
                               AUTHZ_PROVIDER_VERSION);

        /* by the time the config file is used, the provider should be loaded
         * and registered with us.
         */
        if (!prvdraliasrec->provider) {
            return apr_psprintf(cmd->pool,
                                "Unknown Authz provider: %s",
                                provider_name);
        }

        authcfg = ap_get_module_config(cmd->server->module_config,
                                       &authz_core_module);