/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 2000-2011 The OpenLDAP Foundation.
+ * Copyright 2000-2013 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
mdb_dn2entry(
Operation *op,
MDB_txn *tid,
+ MDB_cursor *m2,
struct berval *dn,
Entry **e,
int matched )
MDB_cursor *mc;
Debug(LDAP_DEBUG_TRACE, "mdb_dn2entry(\"%s\")\n",
- dn->bv_val, 0, 0 );
+ dn->bv_val ? dn->bv_val : "", 0, 0 );
*e = NULL;
- rc = mdb_dn2id( op, tid, dn, &id, &mbv, &nmbv );
+ rc = mdb_dn2id( op, tid, m2, dn, &id, &mbv, &nmbv );
if ( rc ) {
if ( matched ) {
rc2 = mdb_cursor_open( tid, mdb->mi_id2entry, &mc );