]> git.sur5r.net Git - openldap/commitdiff
Cleanup mdb_ad_get
authorHoward Chu <hyc@openldap.org>
Fri, 22 Aug 2014 03:26:00 +0000 (20:26 -0700)
committerHoward Chu <hyc@openldap.org>
Fri, 22 Aug 2014 03:26:00 +0000 (20:26 -0700)
servers/slapd/back-mdb/attr.c

index 4dc6825e824abbe1dcd553a7fcce41ef32655afa..5da9da9eb345f6eb08b25e96a57bbe005d13b50e 100644 (file)
@@ -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",