From b07e31aa02c243eb08a241cb659e3e12a094abf1 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 21 Aug 2014 20:26:00 -0700 Subject: [PATCH] Cleanup mdb_ad_get --- servers/slapd/back-mdb/attr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- 2.39.5