]> git.sur5r.net Git - openldap/commitdiff
Fix undetected deadlock
authorHoward Chu <hyc@openldap.org>
Tue, 11 Jan 2005 22:08:06 +0000 (22:08 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 11 Jan 2005 22:08:06 +0000 (22:08 +0000)
servers/slapd/back-bdb/index.c

index 3eb11c351fe8a23d98c40f02f6de8b67760f5f8e..6f101275be1381fe06946781603b3d11727facc2 100644 (file)
@@ -241,7 +241,7 @@ static int indexer(
 
                if( rc == LDAP_SUCCESS && keys != NULL ) {
                        for( i=0; keys[i].bv_val != NULL; i++ ) {
-                               bdb_key_change( op->o_bd, db, txn, &keys[i], id, opid );
+                               rc = bdb_key_change( op->o_bd, db, txn, &keys[i], id, opid );
                                if( rc ) {
                                        ber_bvarray_free_x( keys, op->o_tmpmemctx );
                                        goto done;