From: Pierangelo Masarati Date: Mon, 13 Jun 2005 22:12:11 +0000 (+0000) Subject: rework assertion X-Git-Tag: OPENLDAP_AC_BP~532 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=acf5187b2e0994dbdc4bf69ad6a4cdb7cdc50980;p=openldap rework assertion --- diff --git a/servers/slapd/back-sql/modify.c b/servers/slapd/back-sql/modify.c index 623362a487..fa2d1e9d4b 100644 --- a/servers/slapd/back-sql/modify.c +++ b/servers/slapd/back-sql/modify.c @@ -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;