Skip to content
Snippets Groups Projects
Commit 914f47f2 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

improve previous fix; return LDAP_REFERRAL to avoid returning result multiple times

parent 59b96206
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment