/* dn2entry.c - routines to deal with the dn2id / id2entry glue */
/* $OpenLDAP$ */
/*
- * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
int flags )
{
int rc;
- ID id;
- char *matchedDN = NULL;
+ ID id, id2 = 0;
Debug(LDAP_DEBUG_TRACE, "bdb_dn2entry(\"%s\")\n",
dn->bv_val, 0, 0 );
if( matched != NULL ) {
*matched = NULL;
- rc = bdb_dn2id_matched( be, tid, dn, &id, &matchedDN );
+ rc = bdb_dn2id_matched( be, tid, dn, &id, &id2 );
} else {
rc = bdb_dn2id( be, tid, dn, &id );
}
return rc;
}
- if( matchedDN == NULL ) {
+ if( id2 == 0 ) {
rc = bdb_id2entry( be, tid, id, e );
} else {
- rc = bdb_id2entry( be, tid, id, matched );
+ rc = bdb_id2entry( be, tid, id2, matched );
}
return rc;