From: Arran Cudbard-Bell Date: Thu, 14 Oct 2021 18:09:55 +0000 (-0500) Subject: ldap: Signalling the treq is complete is the _last_ thing we should do X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4573904daf27fdee3f3a9e0cdc25d895332ec9f2;p=thirdparty%2Ffreeradius-server.git ldap: Signalling the treq is complete is the _last_ thing we should do --- diff --git a/src/lib/ldap/connection.c b/src/lib/ldap/connection.c index 803ae231a2a..bd04ef85ed9 100644 --- a/src/lib/ldap/connection.c +++ b/src/lib/ldap/connection.c @@ -910,9 +910,9 @@ static void ldap_trunk_request_demux(fr_trunk_connection_t *tconn, fr_connection /* * Mark the trunk request as complete and set the request as runnable */ - fr_trunk_request_signal_complete(query->treq); if (query->treq->request) unlang_interpret_mark_runnable(query->treq->request); - + fr_trunk_request_signal_complete(query->treq); + query->treq = NULL; } while (1); }