fix previous commit (check for co_type==Cft_Overlay before calling

overlay_destroy_one)
This commit is contained in:
Ralf Haferkamp 2005-07-05 11:46:55 +00:00
parent 7027609818
commit 54fa643a9b

View File

@ -3201,7 +3201,7 @@ leave:
if ( rc ) {
if ( (colst[0]->co_type == Cft_Database) && ca->be ) {
backend_destroy_one( ca->be );
} else if ( (colst[0]->co_type == Cft_Database) && ca->bi ) {
} else if ( (colst[0]->co_type == Cft_Overlay) && ca->bi ) {
overlay_destroy_one( ca->be, (slap_overinst *)ca->bi );
}
}