]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
ldap: Signalling the treq is complete is the _last_ thing we should do
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 14 Oct 2021 18:09:55 +0000 (13:09 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 14 Oct 2021 21:49:49 +0000 (16:49 -0500)
src/lib/ldap/connection.c

index 803ae231a2af65ceca5913757deb0550e8a5665b..bd04ef85ed95470b20b9e6ec3e9617080083d0b8 100644 (file)
@@ -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);
 }