From: Christophe Jaillet Date: Tue, 20 Nov 2012 21:03:52 +0000 (+0000) Subject: Use apr_is_empty_table() instead of getting a table and checking the value of the... X-Git-Tag: 2.5.0-alpha~6091 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5ba916955a34406f2245119d55f88451af98292;p=thirdparty%2Fapache%2Fhttpd.git Use apr_is_empty_table() instead of getting a table and checking the value of the 'nelts' field. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1411862 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/aaa/mod_authz_groupfile.c b/modules/aaa/mod_authz_groupfile.c index fb941688913..15bb60ffe1d 100644 --- a/modules/aaa/mod_authz_groupfile.c +++ b/modules/aaa/mod_authz_groupfile.c @@ -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: "