From acf5187b2e0994dbdc4bf69ad6a4cdb7cdc50980 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 13 Jun 2005 22:12:11 +0000 Subject: [PATCH] rework assertion --- servers/slapd/back-sql/modify.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) 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; -- 2.39.5