]> git.sur5r.net Git - openldap/commitdiff
Fix misplaced #if USE_INDIRECT_NIDS/cont_alloc in idl_delete_key
authorHoward Chu <hyc@openldap.org>
Wed, 16 Jan 2002 07:39:00 +0000 (07:39 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 16 Jan 2002 07:39:00 +0000 (07:39 +0000)
servers/slapd/back-ldbm/idl.c

index 604bbe6117a29fa5d3d97f46695bac6782cdcd1f..e3a5238ec66aa112cc2357130fe26a0cca21e8b2 100644 (file)
@@ -936,12 +936,11 @@ idl_delete_key (
        /* We have to go through an indirect block and find the ID
           in the list of IDL's
           */
+       cont_alloc( &data, &key );
 #ifndef USE_INDIRECT_NIDS
        for ( nids = 0; !ID_BLOCK_NOID(idl, nids); nids++ )
                ;       /* NULL */
 
-       cont_alloc( &data, &key );
-
        for ( j = 0; j<nids; j++ ) 
 #else
        nids = ID_BLOCK_NIDS(idl);