From: Howard Chu Date: Tue, 11 Jan 2005 22:08:06 +0000 (+0000) Subject: Fix undetected deadlock X-Git-Tag: OPENLDAP_REL_ENG_2_3_BP~426 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bd498d2996af8228e7416aea6c95c36ff85f27c4;p=openldap Fix undetected deadlock --- diff --git a/servers/slapd/back-bdb/index.c b/servers/slapd/back-bdb/index.c index 3eb11c351f..6f101275be 100644 --- a/servers/slapd/back-bdb/index.c +++ b/servers/slapd/back-bdb/index.c @@ -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;