]> git.sur5r.net Git - openldap/commitdiff
further improve previous fix
authorPierangelo Masarati <ando@openldap.org>
Fri, 8 Apr 2005 22:11:56 +0000 (22:11 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 8 Apr 2005 22:11:56 +0000 (22:11 +0000)
servers/slapd/back-dnssrv/referral.c

index 7ee6d1362c13c488aaa0f9b516e06bc752cb5d9c..8bd07fcbfcec9a4619f0aa1c9024b7095e3bc594 100644 (file)
@@ -74,10 +74,11 @@ dnssrv_back_referrals(
        Debug( LDAP_DEBUG_TRACE, "DNSSRV: dn=\"%s\" -> domain=\"%s\"\n",
                op->o_req_dn.bv_val, domain, 0 );
 
-       if( ( rc = ldap_domain2hostlist( domain, &hostlist ) ) ) {
+       i = ldap_domain2hostlist( domain, &hostlist );
+       if ( i ) {
                Debug( LDAP_DEBUG_TRACE,
                        "DNSSRV: domain2hostlist(%s) returned %d\n",
-                       domain, rc, 0 );
+                       domain, i, 0 );
                rs->sr_text = "no DNS SRV RR available for DN";
                rc = LDAP_NO_SUCH_OBJECT;
                goto done;