]> git.sur5r.net Git - openldap/commitdiff
fix str2anlist handling of undefined objects (ITS#4854)
authorPierangelo Masarati <ando@openldap.org>
Mon, 5 Mar 2007 16:19:00 +0000 (16:19 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 5 Mar 2007 16:19:00 +0000 (16:19 +0000)
CHANGES
servers/slapd/ad.c

diff --git a/CHANGES b/CHANGES
index b33c4fb28b5e4124bc486e2d4188e0061c382614..b90a54858080e66079becdfd1b1da66da2799d37 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,7 @@ OpenLDAP 2.3 Change Log
 
 OpenLDAP 2.3.35 Engineering
        Fixed entry consistency check in str2entry2 (ITS#4852)
+       Fixed str2anlist handling of undefined attrs/OCs (ITS#4854)
        Fixed slapd-bdb/hdb startup with missing shm env (ITS#4851)
        Fixed slapd-meta/slapo-rwm filter mapping
        Fixed slapo-refint config message (ITS#4853)
index 7316d4cf1c2d0ce5553e9bf2c808f34e41704858..779e565c0ab737ddd79acecbe794c031a51f9f70 100644 (file)
@@ -888,12 +888,14 @@ str2anlist( AttributeName *an, char *in, const char *brkstr )
        }
 
        an = ch_realloc( an, ( i + j + 1 ) * sizeof( AttributeName ) );
-       BER_BVZERO( &an[i + j].an_name );
        anew = an + i;
        for ( s = ldap_pvt_strtok( str, brkstr, &lasts );
                s != NULL;
                s = ldap_pvt_strtok( NULL, brkstr, &lasts ) )
        {
+               /* put a stop mark */
+               BER_BVZERO( &anew[1].an_name );
+
                anew->an_desc = NULL;
                anew->an_oc = NULL;
                anew->an_oc_exclude = 0;