From 914f47f25312aadef37c0b09102bc73158b62221 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 8 Apr 2005 21:58:58 +0000 Subject: [PATCH] improve previous fix; return LDAP_REFERRAL to avoid returning result multiple times --- servers/slapd/back-dnssrv/referral.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.5