perl-modperl-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkal...@apache.org
Subject svn commit: r1448104 - /perl/modperl/branches/httpd24/xs/Apache2/Access/Apache2__Access.h
Date Wed, 20 Feb 2013 11:51:02 GMT
Author: jkaluza
Date: Wed Feb 20 11:51:01 2013
New Revision: 1448104

URL: http://svn.apache.org/r1448104
Log:
* xs/Apache2/Access/Apache2__Access.h: return 'none' if RequestRec::auth_type
 is not set to stay compatible with older mod_perl.


Modified:
    perl/modperl/branches/httpd24/xs/Apache2/Access/Apache2__Access.h

Modified: perl/modperl/branches/httpd24/xs/Apache2/Access/Apache2__Access.h
URL: http://svn.apache.org/viewvc/perl/modperl/branches/httpd24/xs/Apache2/Access/Apache2__Access.h?rev=1448104&r1=1448103&r2=1448104&view=diff
==============================================================================
--- perl/modperl/branches/httpd24/xs/Apache2/Access/Apache2__Access.h (original)
+++ perl/modperl/branches/httpd24/xs/Apache2/Access/Apache2__Access.h Wed Feb 20 11:51:01
2013
@@ -100,11 +100,18 @@ static MP_INLINE
 const char *mpxs_Apache2__RequestRec_auth_type(pTHX_ request_rec *r,
                                               char *type)
 {
+    const char *ret = NULL;
+
     if (type) {
         mpxs_insert_auth_cfg(aTHX_ r, "AuthType", type);
     }
 
-    return ap_auth_type(r);
+    ret = ap_auth_type(r);
+    if (!ret) {
+        return "none";
+    }
+
+    return ret;
 }
 
 static MP_INLINE



Mime
View raw message