mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 09:09:54 -05:00
ITS#7477 check for invalid LDIF
This commit is contained in:
parent
d3087229d5
commit
2565e974b9
1 changed files with 7 additions and 0 deletions
|
|
@ -356,6 +356,13 @@ short_input:
|
|||
/* Make sure all attributes with multiple values are contiguous */
|
||||
for (; i<lr->lr_lines; i++) {
|
||||
for (j=i+1; j<lr->lr_lines; j++) {
|
||||
if ( !lr->lr_btype[j].bv_val ) {
|
||||
fprintf( stderr,
|
||||
_("%s: missing attributeDescription (line %d, entry \"%s\")\n"),
|
||||
errstr, linenum+j, dn );
|
||||
rc = LDAP_PARAM_ERROR;
|
||||
goto leave;
|
||||
}
|
||||
if ( BV_CASEMATCH( lr->lr_btype+i, lr->lr_btype+j )) {
|
||||
nmods--;
|
||||
/* out of order, move intervening attributes down */
|
||||
|
|
|
|||
Loading…
Reference in a new issue