]> git.sur5r.net Git - openldap/commitdiff
ITS#8011 fix prev patch
authorHoward Chu <hyc@openldap.org>
Tue, 27 Jan 2015 18:30:23 +0000 (18:30 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 27 Jan 2015 18:36:14 +0000 (12:36 -0600)
Remove assert. This is merely a cache of parent DNs, failure to
insert doesn't affect outcome.

servers/slapd/back-mdb/dn2id.c

index 46637c12342b3c96d37ec08e78341c7696b4def3..3454576d36d208e650ebc2ca1a59c231a63e8a22 100644 (file)
@@ -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 )