Commit 94bcff33 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

fix str2anlist handling of undefined objects (ITS#4854)

parent bd0370b2
......@@ -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)
......
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment