Commit 34f99368 authored by Pierangelo Masarati's avatar Pierangelo Masarati Committed by Quanah Gibson-Mount
Browse files

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

parent 518f4fd9
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment