]> git.sur5r.net Git - openldap/commitdiff
ITS#5747
authorQuanah Gibson-Mount <quanah@openldap.org>
Mon, 10 Nov 2008 18:49:19 +0000 (18:49 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 10 Nov 2008 18:49:19 +0000 (18:49 +0000)
CHANGES
servers/slapd/overlays/collect.c

diff --git a/CHANGES b/CHANGES
index d5387d8b5dcbbaf420698e9af667f5c8dc931164..abc80c7933cf3c0f1c98e36f28b098a9e5b90f71 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -11,7 +11,8 @@ OpenLDAP 2.4.13 Engineering
        Added slapd-bdb/hdb dbpagesize keyword
        Added slapd-bdb/hdb checksum keyword
        Fixed slapo-chain/translucent back-config support (ITS#5736)
-       Fixed slapd-chain segv with search references (ITS#5742)
+       Fixed slapo-chain segv with search references (ITS#5742)
+       Fixed slapo-collect compile with C89 (ITS#5747)
        Added slapo-constraint support for LDAP URI constraints (ITS#5704)
        Added slapo-constraint support for constraining rename (ITS#5703)
        Added slapo-constraint support for relax control (ITS#5705)
index 4852022f95da3d793ccab842c0212ad8d219426e..f01045a958b7adf73adee725e8b527b7c86f3fe6 100644 (file)
@@ -46,7 +46,7 @@ typedef struct collect_info {
        struct collect_info *ci_next;
        struct berval ci_dn;
        int ci_ad_num;
-       AttributeDescription *ci_ad[];
+       AttributeDescription *ci_ad[1];
 } collect_info;
 
 /*
@@ -176,7 +176,7 @@ collect_cf( ConfigArgs *c )
 
                /* allocate config info with room for attribute array */
                ci = ch_malloc( sizeof( collect_info ) +
-                       ( sizeof (AttributeDescription *) * (count + 1)));
+                       sizeof( AttributeDescription * ) * count );
 
                /* validate and normalize dn */
                ber_str2bv( c->argv[1], 0, 0, &bv );