Skip to content

Commit 73dc77a

Browse files
committed
* 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
1 parent 1a02ff9 commit 73dc77a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/aaa/mod_authnz_ldap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ static void *create_authnz_ldap_dir_config(apr_pool_t *p, char *d)
355355
sec->group_attrib_is_dn = 1;
356356
sec->secure = -1; /*Initialize to unset*/
357357
sec->maxNestingDepth = 0;
358-
sec->sgAttributes = apr_pcalloc(p, sizeof (char *) * GROUPATTR_MAX_ELTS + 1);
358+
sec->sgAttributes = apr_pcalloc(p, sizeof (char *) * (GROUPATTR_MAX_ELTS + 1));
359359

360360
sec->user_is_dn = 0;
361361
sec->remote_user_attribute = NULL;

0 commit comments

Comments
 (0)