httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1351016 - /httpd/httpd/trunk/modules/aaa/mod_authz_core.c
Date Sat, 16 Jun 2012 22:44:36 GMT
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;
     }



Mime
View raw message