From: Howard Chu Date: Wed, 16 Jan 2002 07:39:00 +0000 (+0000) Subject: Fix misplaced #if USE_INDIRECT_NIDS/cont_alloc in idl_delete_key X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~114 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=913c321a7ef4b4ba55add9751966b357cf9f7e7f;p=thirdparty%2Fopenldap.git Fix misplaced #if USE_INDIRECT_NIDS/cont_alloc in idl_delete_key --- diff --git a/servers/slapd/back-ldbm/idl.c b/servers/slapd/back-ldbm/idl.c index 604bbe6117..e3a5238ec6 100644 --- a/servers/slapd/back-ldbm/idl.c +++ b/servers/slapd/back-ldbm/idl.c @@ -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