]> git.sur5r.net Git - openldap/commitdiff
Fix ITS#3424
authorHoward Chu <hyc@openldap.org>
Wed, 8 Dec 2004 20:55:35 +0000 (20:55 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 8 Dec 2004 20:55:35 +0000 (20:55 +0000)
servers/slapd/back-bdb/dn2id.c

index ef19457e58aecd68cd0830a65b0f12e17e5c8181..6268fd3fd63989a88630046585887daf49657a08 100644 (file)
@@ -274,10 +274,10 @@ bdb_dn2id(
                Debug( LDAP_DEBUG_TRACE, "<= bdb_dn2id: get failed: %s (%d)\n",
                        db_strerror( rc ), rc, 0 );
        } else {
+               BDB_DISK2ID( &nid, &ei->bei_id );
                Debug( LDAP_DEBUG_TRACE, "<= bdb_dn2id: got id=0x%08lx\n",
                        ei->bei_id, 0, 0 );
        }
-       BDB_DISK2ID( &nid, &ei->bei_id );
 
        op->o_tmpfree( key.data, op->o_tmpmemctx );
        return rc;