You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sf...@apache.org on 2012/06/17 00:44:36 UTC

svn commit: r1351016 - /httpd/httpd/trunk/modules/aaa/mod_authz_core.c

Author: sf
Date: Sat Jun 16 22:44:36 2012
New Revision: 1351016

URL: http://svn.apache.org/viewvc?rev=1351016&view=rev
Log:
pass the provider name to parse_require_line as pool userdata

This allows a single C function to implement several authz providers.

Modified:
    httpd/httpd/trunk/modules/aaa/mod_authz_core.c

Modified: httpd/httpd/trunk/modules/aaa/mod_authz_core.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/aaa/mod_authz_core.c?rev=1351016&r1=1351015&r2=1351016&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/aaa/mod_authz_core.c (original)
+++ httpd/httpd/trunk/modules/aaa/mod_authz_core.c Sat Jun 16 22:44:36 2012
@@ -413,8 +413,14 @@ static const char *add_authz_provider(cm
     section->limited = cmd->limited;
 
     if (section->provider->parse_require_line) {
-        const char *err = section->provider->parse_require_line(cmd, args,
-                                                                &section->provider_parsed_args);
+        const char *err;
+        apr_pool_userdata_setn(section->provider_name,
+                               AUTHZ_PROVIDER_NAME_NOTE,
+                               apr_pool_cleanup_null,
+                               cmd->temp_pool);
+        err = section->provider->parse_require_line(cmd, args,
+                                              &section->provider_parsed_args);
+
         if (err)
             return err;
     }