]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Use apr_is_empty_table() instead of getting a table and checking the value of the...
authorChristophe Jaillet <jailletc36@apache.org>
Tue, 20 Nov 2012 21:03:52 +0000 (21:03 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Tue, 20 Nov 2012 21:03:52 +0000 (21:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1411862 13f79535-47bb-0310-9956-ffa450edef68

modules/aaa/mod_authz_groupfile.c

index fb94168891366eb4074c8ec49cde5ed4034710b0..15bb60ffe1d359844b02bb97489679adfcead269 100644 (file)
@@ -176,7 +176,7 @@ static authz_status group_check_authorization(request_rec *r,
         return AUTHZ_DENIED;
     }
 
-    if (apr_table_elts(grpstatus)->nelts == 0) {
+    if (apr_is_empty_table(grpstatus)) {
         /* no groups available, so exit immediately */
         ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(01666)
                       "Authorization of user %s to access %s failed, reason: "
@@ -235,7 +235,7 @@ static authz_status filegroup_check_authorization(request_rec *r,
         return AUTHZ_DENIED;
     }
 
-    if (apr_table_elts(grpstatus)->nelts == 0) {
+    if (apr_is_empty_table(grpstatus)) {
         /* no groups available, so exit immediately */
         ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(01670)
                         "Authorization of user %s to access %s failed, reason: "