]> git.sur5r.net Git - openldap/commitdiff
fix the fix to previous commit
authorPierangelo Masarati <ando@openldap.org>
Tue, 12 Apr 2005 17:11:30 +0000 (17:11 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 12 Apr 2005 17:11:30 +0000 (17:11 +0000)
servers/slapd/add.c

index 5154acfbc990df1017b14d8fa53d491efe844197..39c11162f7d29b0d03c51f89651ca042fa46c48c 100644 (file)
@@ -177,11 +177,7 @@ do_add( Operation *op, SlapReply *rs )
        op->o_bd = frontendDB;
        rc = frontendDB->be_add( op, rs );
        if ( rc == 0 ) {
-               /* FIXME: temporary? */
-               assert( op->ora_e != NULL );
-               assert( op->o_private != NULL );
-               
-               if ( op->ora_e != NULL ) {
+               if ( op->ora_e != NULL && op->o_private != NULL ) {
                        BackendDB       *bd = op->o_bd;
 
                        op->o_bd = (BackendDB *)op->o_private;