]> git.sur5r.net Git - openldap/commitdiff
Fix bei_state access
authorQuanah Gibson-Mount <quanah@openldap.org>
Tue, 20 May 2008 01:31:51 +0000 (01:31 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 20 May 2008 01:31:51 +0000 (01:31 +0000)
servers/slapd/back-bdb/dn2id.c

index 3167f45b22425dab3fb0ae047c64476ccc60eb47..5f8d99b455e1c50cdd39b8ff7f6fb100ea09b2d9 100644 (file)
@@ -1152,7 +1152,11 @@ gotit:
                                }
                                cx->depth--;
                                cx->op->o_tmpfree( save, cx->op->o_tmpmemctx );
-                               if ( nokids ) ei->bei_state |= CACHE_ENTRY_NO_GRANDKIDS;
+                               if ( nokids ) {
+                                       bdb_cache_entryinfo_lock( ei );
+                                       ei->bei_state |= CACHE_ENTRY_NO_GRANDKIDS;
+                                       bdb_cache_entryinfo_unlock( ei );
+                               }
                        }
                        /* Make sure caller knows it had kids! */
                        cx->tmp[0]=1;