From: Howard Chu Date: Fri, 22 Aug 2014 03:26:00 +0000 (-0700) Subject: Cleanup mdb_ad_get X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b07e31aa02c243eb08a241cb659e3e12a094abf1;p=openldap Cleanup mdb_ad_get --- diff --git a/servers/slapd/back-mdb/attr.c b/servers/slapd/back-mdb/attr.c index 4dc6825e82..5da9da9eb3 100644 --- a/servers/slapd/back-mdb/attr.c +++ b/servers/slapd/back-mdb/attr.c @@ -617,7 +617,7 @@ int mdb_ad_get( struct mdb_info *mdb, MDB_txn *txn, AttributeDescription *ad ) if ( rc == MDB_SUCCESS ) { mdb->mi_adxs[ad->ad_index] = i; mdb->mi_ads[i] = ad; - mdb->mi_numads++; + mdb->mi_numads = i; } else { Debug( LDAP_DEBUG_ANY, "mdb_ad_get: mdb_put failed %s(%d)\n",