From 54fa643a9bd33e59059b84bda010b5f668cd45bb Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Tue, 5 Jul 2005 11:46:55 +0000 Subject: [PATCH] fix previous commit (check for co_type==Cft_Overlay before calling overlay_destroy_one) --- servers/slapd/bconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index 622e7e6011..91c8659765 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -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 ); } } -- 2.39.5