From 4c6888cada7726ec0835ca12545e96938c7e56f4 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 14 May 2003 19:30:25 +0000 Subject: [PATCH] ITS#2514 fix NULL deref --- servers/slapd/back-bdb/referral.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; -- 2.39.5