mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-02 04:59:39 -05:00
fix str2anlist handling of undefined objects (ITS#4854)
This commit is contained in:
parent
e630a6a428
commit
f88449bcba
1 changed files with 3 additions and 1 deletions
|
|
@ -906,12 +906,14 @@ str2anlist( AttributeName *an, char *in, const char *brkstr )
|
||||||
}
|
}
|
||||||
|
|
||||||
an = ch_realloc( an, ( i + j + 1 ) * sizeof( AttributeName ) );
|
an = ch_realloc( an, ( i + j + 1 ) * sizeof( AttributeName ) );
|
||||||
BER_BVZERO( &an[i + j].an_name );
|
|
||||||
anew = an + i;
|
anew = an + i;
|
||||||
for ( s = ldap_pvt_strtok( str, brkstr, &lasts );
|
for ( s = ldap_pvt_strtok( str, brkstr, &lasts );
|
||||||
s != NULL;
|
s != NULL;
|
||||||
s = ldap_pvt_strtok( NULL, brkstr, &lasts ) )
|
s = ldap_pvt_strtok( NULL, brkstr, &lasts ) )
|
||||||
{
|
{
|
||||||
|
/* put a stop mark */
|
||||||
|
BER_BVZERO( &anew[1].an_name );
|
||||||
|
|
||||||
anew->an_desc = NULL;
|
anew->an_desc = NULL;
|
||||||
anew->an_oc = NULL;
|
anew->an_oc = NULL;
|
||||||
anew->an_oc_exclude = 0;
|
anew->an_oc_exclude = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue