From c5378df634a5ab4ebd66a7760b00faadda52358e Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 27 Jan 2015 18:30:23 +0000 Subject: [PATCH] ITS#8011 fix prev patch Remove assert. This is merely a cache of parent DNs, failure to insert doesn't affect outcome. --- servers/slapd/back-mdb/dn2id.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servers/slapd/back-mdb/dn2id.c b/servers/slapd/back-mdb/dn2id.c index 46637c1234..3454576d36 100644 --- a/servers/slapd/back-mdb/dn2id.c +++ b/servers/slapd/back-mdb/dn2id.c @@ -763,7 +763,8 @@ mdb_idscopes( int i; for ( i = 1; i <= isc->sctmp[0].mid; i++ ) { rc = mdb_id2l_insert( isc->scopes, &isc->sctmp[i] ); - assert(rc == 0); + if ( rc ) + break; } /* check id again since inserts may have changed its position */ if ( isc->scopes[x].mid != id )