From ea87ac393da59cd668e64181cb4c96cf778021e9 Mon Sep 17 00:00:00 2001 From: Nick Porter Date: Mon, 24 Apr 2023 18:40:44 +0100 Subject: [PATCH] Remove reference to previous referral before looking for others --- src/lib/ldap/connection.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.47.3