From 8c4a37bc57ede70a4cbdc1b8675c76ee109cd513 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 7 Apr 2004 14:28:50 +0000 Subject: [PATCH] Import ITS#3046 fix from HEAD --- servers/slapd/back-ldbm/idl.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/servers/slapd/back-ldbm/idl.c b/servers/slapd/back-ldbm/idl.c index 16c3e6da51..4c4a2f150c 100644 --- a/servers/slapd/back-ldbm/idl.c +++ b/servers/slapd/back-ldbm/idl.c @@ -943,13 +943,16 @@ idl_delete_key ( */ cont_alloc( &data, &key ); #ifndef USE_INDIRECT_NIDS - for ( nids = 0; !ID_BLOCK_NOID(idl, nids); nids++ ) - ; /* NULL */ + for ( nids = 0; !ID_BLOCK_NOID(idl, nids); nids++ ) { + ; /* Empty */ + } for ( j = 0; j= 0; j = -1) /* execute once */ + j = idl_find(idl, id); + if ( ID_BLOCK_ID(idl, j) > id ) j--; + for (; j >= 0; j = -1) /* execute once */ #endif { ID_BLOCK *tmp; -- 2.39.5