]> git.sur5r.net Git - openldap/commitdiff
Check for cleanup on Adds, not just Modifies
authorHoward Chu <hyc@openldap.org>
Mon, 8 Oct 2007 06:19:50 +0000 (06:19 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 8 Oct 2007 06:19:50 +0000 (06:19 +0000)
servers/slapd/bconfig.c

index 64894df73a9b5af306d14430a25c276bb8ec8e14..0cf122727fbe5758de85612820d2b0f85ce65f5c 100644 (file)
@@ -4313,6 +4313,8 @@ ok:
                                rc = ca->bi->bi_db_open( ca->be, &ca->reply );
                                ca->be->bd_info = bi_orig;
                        }
+               } else if ( ca->cleanup ) {
+                       rc = ca->cleanup( ca );
                }
                if ( rc ) {
                        if (ca->cr_msg[0] == '\0')