Underlying code needs work.
Entry *bdb_deref_internal_r LDAP_P((
BackendDB *be,
Entry *e,
- const char *dn,
+ struct berval *dn,
int *err,
Entry **matched,
const char **text ));
#ifdef BDB_ALIASES
/* get entry with reader lock */
if ( deref & LDAP_DEREF_FINDING ) {
- e = deref_dn_r( be, nbase->bv_val, &err, &matched, &text );
+ e = deref_dn_r( be, nbase-, &err, &matched, &text );
} else
#endif
Entry *deref_internal_r(
Backend* be,
Entry* alias,
- const char* dn_in,
+ struct berval* dn_in,
int* err,
Entry** matched,
const char** text )
*text = NULL;
if( alias == NULL ) {
- dn = ch_strdup( dn_in );
+ dn = ch_strdup( dn_in->bv_val );
entry = dn2entry_r( be, dn, &sup );
} else {
Entry *deref_internal_r LDAP_P((
Backend *be,
Entry *e,
- const char *dn,
+ struct berval *dn,
int *err,
Entry **matched,
const char **text ));
} else if ( deref & LDAP_DEREF_FINDING ) {
/* deref dn and get entry with reader lock */
- e = deref_dn_r( be, nbase->bv_val, &err, &matched, &text );
+ e = deref_dn_r( be, nbase, &err, &matched, &text );
if( err == LDAP_NO_SUCH_OBJECT ) err = LDAP_REFERRAL;