From: Howard Chu Date: Wed, 14 May 2003 19:30:25 +0000 (+0000) Subject: ITS#2514 fix NULL deref X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~135 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4c6888cada7726ec0835ca12545e96938c7e56f4;p=openldap ITS#2514 fix NULL deref --- diff --git a/servers/slapd/back-bdb/referral.c b/servers/slapd/back-bdb/referral.c index 4ec6c7b09f..ea9dcfd86d 100644 --- a/servers/slapd/back-bdb/referral.c +++ b/servers/slapd/back-bdb/referral.c @@ -80,11 +80,11 @@ dn2entry_retry: #ifdef NEW_LOGGING LDAP_LOG ( OPERATION, DETAIL1, "bdb_referrals: op=%ld target=\"%s\" matched=\"%s\"\n", - (long) op->o_tag, op->o_req_dn.bv_val, rs->sr_matched ); + (long) op->o_tag, op->o_req_dn.bv_val, e->e_name.bv_val ); #else Debug( LDAP_DEBUG_TRACE, "bdb_referrals: op=%ld target=\"%s\" matched=\"%s\"\n", - (long) op->o_tag, op->o_req_dn.bv_val, rs->sr_matched ); + (long) op->o_tag, op->o_req_dn.bv_val, e->e_name.bv_val ); #endif if( is_entry_referral( e ) ) { @@ -133,11 +133,11 @@ dn2entry_retry: #ifdef NEW_LOGGING LDAP_LOG ( OPERATION, DETAIL1, "bdb_referrals: op=%ld target=\"%s\" matched=\"%s\"\n", - (long) op->o_tag, op->o_req_dn.bv_val, e->e_dn ); + (long) op->o_tag, op->o_req_dn.bv_val, e->e_name.bv_val ); #else Debug( LDAP_DEBUG_TRACE, "bdb_referrals: op=%ld target=\"%s\" matched=\"%s\"\n", - (long) op->o_tag, op->o_req_dn.bv_val, e->e_dn ); + (long) op->o_tag, op->o_req_dn.bv_val, e->e_name.bv_val ); #endif rs->sr_matched = e->e_name.bv_val;