mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 09:39:45 -05:00
ITS#7687: password modify can muck with controls (quick fix)
This commit is contained in:
parent
16f8b0902c
commit
919a0f5b54
1 changed files with 5 additions and 4 deletions
|
|
@ -196,12 +196,13 @@ chaining_control_remove(
|
|||
* added by the chain overlay, so it's the only one we explicitly
|
||||
* free */
|
||||
if ( op->o_ctrls != oldctrls ) {
|
||||
assert( op->o_ctrls != NULL );
|
||||
assert( op->o_ctrls[ 0 ] != NULL );
|
||||
if ( op->o_ctrls != NULL ) {
|
||||
assert( op->o_ctrls[ 0 ] != NULL );
|
||||
|
||||
free( op->o_ctrls );
|
||||
free( op->o_ctrls );
|
||||
|
||||
op->o_chaining = 0;
|
||||
op->o_chaining = 0;
|
||||
}
|
||||
op->o_ctrls = oldctrls;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue