fix double free - related to ITS#4860 and probably ITS#4873

This commit is contained in:
Pierangelo Masarati 2007-09-13 22:39:33 +00:00
parent 84500fc2b7
commit 1845f1b951

View File

@ -182,6 +182,9 @@ slap_set_join(
}
}
/* pointers to values have been used in set - don't free twice */
op_flags |= SLAP_SET_LREFVAL;
last = i;
for ( i = 0; !BER_BVISNULL( &rset[ i ] ); i++ ) {
@ -210,6 +213,10 @@ slap_set_join(
last++;
}
}
/* pointers to values have been used in set - don't free twice */
op_flags |= SLAP_SET_RREFVAL;
BER_BVZERO( &set[ last ] );
}
break;