]> git.sur5r.net Git - openldap/commitdiff
fix previous commit (check for co_type==Cft_Overlay before calling
authorRalf Haferkamp <ralf@openldap.org>
Tue, 5 Jul 2005 11:46:55 +0000 (11:46 +0000)
committerRalf Haferkamp <ralf@openldap.org>
Tue, 5 Jul 2005 11:46:55 +0000 (11:46 +0000)
overlay_destroy_one)

servers/slapd/bconfig.c

index 622e7e60114f78d3e3f6765c2d600bcbc00598d0..91c865976520a23a4c89d48d80cd40ba0fe6752f 100644 (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 );
                }
        }