From: Howard Chu Date: Mon, 13 Jun 2005 23:57:30 +0000 (+0000) Subject: Fix typo in prev commit X-Git-Tag: OPENLDAP_AC_BP~528 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4667a44ae66c69f953d10620374aba8a76dde1ac;p=openldap Fix typo in prev commit --- diff --git a/servers/slapd/back-bdb/dn2id.c b/servers/slapd/back-bdb/dn2id.c index 5d8644306e..2c2ef30e51 100644 --- a/servers/slapd/back-bdb/dn2id.c +++ b/servers/slapd/back-bdb/dn2id.c @@ -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