]> git.sur5r.net Git - openldap/commitdiff
Fix typo in prev commit
authorHoward Chu <hyc@openldap.org>
Mon, 13 Jun 2005 23:57:30 +0000 (23:57 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 13 Jun 2005 23:57:30 +0000 (23:57 +0000)
servers/slapd/back-bdb/dn2id.c

index 5d8644306e213b4faa269cae4f694903567413e2..2c2ef30e510644cf69f344d35a2e456f59292b56 100644 (file)
@@ -595,7 +595,7 @@ hdb_dn2id_delete(
        /* Delete our ID from the parent's list */
        rc = cursor->c_get( cursor, &key, &data, DB_GET_BOTH_RANGE );
        if ( rc == 0 ) {
-               if ( dlen[1] == d->nrdnlen[1] && dlen[0] != d->nrdnlen[0] &&
+               if ( dlen[1] == d->nrdnlen[1] && dlen[0] == d->nrdnlen[0] &&
                        !strcmp( d->nrdn, BEI(e)->bei_nrdn.bv_val ))
                        rc = cursor->c_del( cursor, 0 );
                else