Skip to content
Snippets Groups Projects
Commit f88449bc authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

fix str2anlist handling of undefined objects (ITS#4854)

parent e630a6a4
No related branches found
No related tags found
No related merge requests found
......@@ -906,12 +906,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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment