Skip to content
Snippets Groups Projects
Commit 23c3effe authored by Howard Chu's avatar Howard Chu
Browse files

ITS#7477 check for invalid LDIF

parent 17d79e28
No related branches found
No related tags found
No related merge requests found
......@@ -618,6 +618,13 @@ short_input:
/* Make sure all attributes with multiple values are contiguous */
for (; i<lines; i++) {
for (j=i+1; j<lines; j++) {
if ( !btype[j].bv_val ) {
fprintf( stderr,
_("%s: missing attributeDescription (line %d, entry \"%s\")\n"),
prog, linenum+j, dn );
rc = LDAP_PARAM_ERROR;
goto leave;
}
if ( BV_CASEMATCH( btype+i, btype+j )) {
nmods--;
/* out of order, move intervening attributes down */
......
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