]> git.sur5r.net Git - openldap/commitdiff
Fix prev commit setting NO_GRANDKIDS incorrectly
authorHoward Chu <hyc@openldap.org>
Wed, 8 Oct 2003 06:05:48 +0000 (06:05 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 8 Oct 2003 06:05:48 +0000 (06:05 +0000)
servers/slapd/back-bdb/dn2id.c

index 1ea506b676f0cd41c5e070872fa6375f5a6cc723..0d3910c30b03bb732992b4448bae04448a3f5705 100644 (file)
@@ -1054,8 +1054,10 @@ gotit:
                                cx->op->o_tmpfree( save, cx->op->o_tmpmemctx );
                                if ( nokids ) ei->bei_state |= CACHE_ENTRY_NO_GRANDKIDS;
                        }
-                       cx->rc = 0;
+                       /* Make sure caller knows it had kids! */
+                       cx->tmp[0]=1;
 
+                       cx->rc = 0;
                } else {
                        BDB_IDL_CPY( cx->ids, cx->tmp );
                }