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

index c22282eb3ae871dd3bd1e214a28b8b82247a2b5a..7ee6d1362c13c488aaa0f9b516e06bc752cb5d9c 100644 (file)
@@ -119,11 +119,12 @@ dnssrv_back_referrals(
        send_ldap_error( op, rs, LDAP_REFERRAL,
                "DNS SRV generated referrals" );
        rs->sr_ref = NULL;
+       rc = LDAP_REFERRAL;
 
 done:
        if( domain != NULL ) ch_free( domain );
        if( hostlist != NULL ) ch_free( hostlist );
        if( hosts != NULL ) ldap_charray_free( hosts );
        ber_bvarray_free( urls );
-       return rs->sr_err;
+       return rc;
 }