mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-17 14:00:30 +08:00
Last minute LDIF empty value bug fix
This commit is contained in:
parent
5201427ee1
commit
0825317a35
1
CHANGES
1
CHANGES
@ -11,6 +11,7 @@ OpenLDAP 2.0.5 Release
|
||||
Fixed -lldap first/next attribute bug (ITS#778)
|
||||
Fixed -lldap (v2) rebind URL bug
|
||||
Fixed -lldap msgfree NULL bug (ITS#800)
|
||||
Fixed -lldif empty value bug
|
||||
Fixed -llber stringal len=0 bug
|
||||
Updated -llber bprint routine
|
||||
Build Environment
|
||||
|
@ -1022,6 +1022,16 @@ domodify(
|
||||
fprintf( stderr, "%s: no attributes to change or add (entry=\"%s\")\n",
|
||||
prog, dn );
|
||||
return( LDAP_PARAM_ERROR );
|
||||
}
|
||||
|
||||
for ( i = 0; pmods[ i ] != NULL; ++i ) {
|
||||
op = pmods[ i ]->mod_op & ~LDAP_MOD_BVALUES;
|
||||
if( op == LDAP_MOD_ADD && ( pmods[i]->mod_bvalues == NULL )) {
|
||||
fprintf( stderr,
|
||||
"%s: attribute \"%s\" has no values (entry=\"%s\")\n",
|
||||
prog, pmods[i]->mod_type, dn );
|
||||
return LDAP_PARAM_ERROR;
|
||||
}
|
||||
}
|
||||
|
||||
if ( verbose ) {
|
||||
|
@ -116,7 +116,7 @@ ldif_parse_line(
|
||||
|
||||
if ( *s == '\0' ) {
|
||||
/* no value */
|
||||
value = NULL;
|
||||
value = "";
|
||||
vlen = 0;
|
||||
goto done;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user