]> git.sur5r.net Git - openldap/commitdiff
rework assertion
authorPierangelo Masarati <ando@openldap.org>
Mon, 13 Jun 2005 22:12:11 +0000 (22:12 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 13 Jun 2005 22:12:11 +0000 (22:12 +0000)
servers/slapd/back-sql/modify.c

index 623362a487852af522bb3c47bc62fe0033d8d076..fa2d1e9d4ba80625cc7019bf28d0c5528f5c4e4a 100644 (file)
@@ -124,23 +124,7 @@ backsql_modify( Operation *op, SlapReply *rs )
        }
 
        oc = backsql_id2oc( bi, bsi.bsi_base_id.eid_oc_id );
-       if ( oc == NULL ) {
-               Debug( LDAP_DEBUG_TRACE, "   backsql_modify(): "
-                       "cannot determine objectclass of entry -- aborting\n",
-                       0, 0, 0 );
-               /*
-                * FIXME: should never occur, since the entry was built!!!
-                */
-
-               /*
-                * FIXME: we don't want to send back 
-                * excessively detailed messages
-                */
-               rs->sr_err = LDAP_OTHER;
-               rs->sr_text = "SQL-backend error";
-               e = NULL;
-               goto done;
-       }
+       assert( oc != NULL );
 
        if ( !acl_check_modlist( op, &m, op->oq_modify.rs_modlist ) ) {
                rs->sr_err = LDAP_INSUFFICIENT_ACCESS;