]> git.sur5r.net Git - openldap/commitdiff
Fix prev commit
authorHoward Chu <hyc@openldap.org>
Sat, 12 Jun 2004 05:29:07 +0000 (05:29 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 12 Jun 2004 05:29:07 +0000 (05:29 +0000)
servers/slapd/back-bdb/add.c

index 1b074f57451c7b1311ac41ef0a9f676f4b64e6b8..22da9a6a37f7e848fdda7eb3b2f54a2b5c734914 100644 (file)
@@ -381,7 +381,7 @@ retry:      /* transaction retry */
        }
 
        /* This is the first add to a root DB, need to make the suffix glue */
-       if ( pdn.bv_len == 0 && ei->bei_id == 0 ) {
+       if ( op->o_bd->be_nsuffix[0].bv_len == 0 && ei->bei_id == 0 ) {
                Entry e_root = {0};
                e_root.e_name.bv_val = "";
                e_root.e_nname.bv_val = "";