httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r964157 - /httpd/test/framework/trunk/c-modules/authany/mod_authany.c
Date Wed, 14 Jul 2010 20:00:03 GMT
Author: sf
Date: Wed Jul 14 20:00:03 2010
New Revision: 964157

URL: http://svn.apache.org/viewvc?rev=964157&view=rev
Log:
support AUTHZ_DENIED_NO_USER in mod_authany

Modified:
    httpd/test/framework/trunk/c-modules/authany/mod_authany.c

Modified: httpd/test/framework/trunk/c-modules/authany/mod_authany.c
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/c-modules/authany/mod_authany.c?rev=964157&r1=964156&r2=964157&view=diff
==============================================================================
--- httpd/test/framework/trunk/c-modules/authany/mod_authany.c (original)
+++ httpd/test/framework/trunk/c-modules/authany/mod_authany.c Wed Jul 14 20:00:03 2010
@@ -39,6 +39,11 @@ static const authn_provider authn_any_pr
 static authz_status any_check_authorization(request_rec *r,
                                             const char *requirement)
 {
+#if AP_MODULE_MAGIC_AT_LEAST(20100714,0)
+    if (!r->user)
+        return AUTHZ_DENIED_NO_USER;
+#endif
+
     return strtrue(r->user) && strcmp(requirement, "any-user") == 0 
         ? AUTHZ_GRANTED : AUTHZ_DENIED;
 }



Mime
View raw message