]> git.sur5r.net Git - openldap/commitdiff
ITS#3616 don't index the dummy context entry
authorHoward Chu <hyc@openldap.org>
Wed, 13 Apr 2005 19:05:56 +0000 (19:05 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 13 Apr 2005 19:05:56 +0000 (19:05 +0000)
servers/slapd/back-bdb/index.c

index 4db3c6794a5fbc36b11dc965f7c6caf19b93ff96..1dd494c375f17e69e22f894d2bfaa2555047bd15 100644 (file)
@@ -340,6 +340,10 @@ int bdb_index_values(
 {
        int rc;
 
+       /* Never index ID 0 */
+       if ( id == 0 )
+               return 0;
+
        rc = index_at_values( op, txn, desc,
                desc->ad_type, &desc->ad_tags,
                vals, id, opid );