]> git.sur5r.net Git - openldap/commitdiff
ITS#2514 fix NULL deref
authorHoward Chu <hyc@openldap.org>
Wed, 14 May 2003 19:30:25 +0000 (19:30 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 14 May 2003 19:30:25 +0000 (19:30 +0000)
servers/slapd/back-bdb/referral.c

index 4ec6c7b09fb178fda16ffe8aca5b77517de7267d..ea9dcfd86d533bd9119b18c53b98591f000017d3 100644 (file)
@@ -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;