ITS#7687: password modify can muck with controls (quick fix)

This commit is contained in:
Pierangelo Masarati 2013-09-10 21:58:28 +02:00
parent 16f8b0902c
commit 919a0f5b54

View file

@ -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;
}