mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#9126 Add a missed normalised copy of pwdChangedTime
This commit is contained in:
parent
a2be9ff491
commit
254b62b803
@ -2114,10 +2114,11 @@ do_modify:
|
||||
mods = (Modifications *) ch_calloc( sizeof( Modifications ), 1 );
|
||||
mods->sml_op = LDAP_MOD_REPLACE;
|
||||
mods->sml_numvals = 1;
|
||||
mods->sml_values = (BerVarray) ch_malloc( 2 * sizeof( struct berval ) );
|
||||
mods->sml_values = (BerVarray) ch_calloc( sizeof( struct berval ), 2 );
|
||||
mods->sml_nvalues = (BerVarray) ch_calloc( sizeof( struct berval ), 2 );
|
||||
|
||||
ber_dupbv( &mods->sml_values[0], ×tamp );
|
||||
BER_BVZERO( &mods->sml_values[1] );
|
||||
assert( !BER_BVISNULL( &mods->sml_values[0] ) );
|
||||
ber_dupbv( &mods->sml_nvalues[0], ×tamp );
|
||||
} else if (attr_find(e->e_attrs, ad_pwdChangedTime )) {
|
||||
mods = (Modifications *) ch_calloc( sizeof( Modifications ), 1 );
|
||||
mods->sml_op = LDAP_MOD_DELETE;
|
||||
|
Loading…
Reference in New Issue
Block a user