From: Pierangelo Masarati Date: Fri, 8 Apr 2005 21:58:58 +0000 (+0000) Subject: improve previous fix; return LDAP_REFERRAL to avoid returning result multiple times X-Git-Tag: OPENLDAP_AC_BP~972 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=914f47f25312aadef37c0b09102bc73158b62221;p=openldap improve previous fix; return LDAP_REFERRAL to avoid returning result multiple times --- diff --git a/servers/slapd/back-dnssrv/referral.c b/servers/slapd/back-dnssrv/referral.c index 6a3abcd69d..c22282eb3a 100644 --- a/servers/slapd/back-dnssrv/referral.c +++ b/servers/slapd/back-dnssrv/referral.c @@ -67,6 +67,7 @@ dnssrv_back_referrals( rs->sr_err = LDAP_REFERRAL; rs->sr_ref = default_referral; send_ldap_result( op, rs ); + rs->sr_ref = NULL; return LDAP_REFERRAL; } @@ -124,5 +125,5 @@ done: if( hostlist != NULL ) ch_free( hostlist ); if( hosts != NULL ) ldap_charray_free( hosts ); ber_bvarray_free( urls ); - return rc; + return rs->sr_err; }