diff options
author | Joe Orton <jorton@apache.org> | 2024-11-20 11:23:03 +0100 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2024-11-20 11:23:03 +0100 |
commit | 73dc77ae8d0974d8ea922673e2371c189e5bd594 (patch) | |
tree | cec1477a786a7cc36c3b326f0ff39ab91659be7a /modules | |
parent | Tweak formatting and fix credit to Charles Smutz. (diff) | |
download | apache2-73dc77ae8d0974d8ea922673e2371c189e5bd594.tar.xz apache2-73dc77ae8d0974d8ea922673e2371c189e5bd594.zip |
* modules/aaa/mod_authnz_ldap.c (create_authnz_ldap_dir_config): Fix allocation
of sgAttributes, found by gcc -fanalyzer:
modules/aaa/mod_authnz_ldap.c: scope_hint: In function 'create_authnz_ldap_dir_config'
modules/aaa/mod_authnz_ldap.c:356:23: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1921971 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r-- | modules/aaa/mod_authnz_ldap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/aaa/mod_authnz_ldap.c b/modules/aaa/mod_authnz_ldap.c index 3ff62fd032..888e68fe13 100644 --- a/modules/aaa/mod_authnz_ldap.c +++ b/modules/aaa/mod_authnz_ldap.c @@ -355,7 +355,7 @@ static void *create_authnz_ldap_dir_config(apr_pool_t *p, char *d) sec->group_attrib_is_dn = 1; sec->secure = -1; /*Initialize to unset*/ sec->maxNestingDepth = 0; - sec->sgAttributes = apr_pcalloc(p, sizeof (char *) * GROUPATTR_MAX_ELTS + 1); + sec->sgAttributes = apr_pcalloc(p, sizeof (char *) * (GROUPATTR_MAX_ELTS + 1)); sec->user_is_dn = 0; sec->remote_user_attribute = NULL; |