From: Nick Porter Date: Mon, 24 Apr 2023 17:40:44 +0000 (+0100) Subject: Remove reference to previous referral before looking for others X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea87ac393da59cd668e64181cb4c96cf778021e9;p=thirdparty%2Ffreeradius-server.git Remove reference to previous referral before looking for others --- diff --git a/src/lib/ldap/connection.c b/src/lib/ldap/connection.c index b7bbe80b0cd..2deae56612d 100644 --- a/src/lib/ldap/connection.c +++ b/src/lib/ldap/connection.c @@ -887,6 +887,7 @@ static void ldap_trunk_request_demux(fr_event_list_t *el, fr_trunk_connection_t * We're processing a referral - see if there are any more to try */ fr_dlist_talloc_free_item(&query->referrals, query->referral); + query->referral = NULL; if ((fr_dlist_num_elements(&query->referrals) > 0) && (fr_ldap_referral_next(ttrunk->t, request, query) == 0)) goto next_follow;