]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
move STOP check to before assert. Fixes #5512
authorAlan T. DeKok <aland@freeradius.org>
Sat, 8 Feb 2025 11:45:55 +0000 (06:45 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 8 Feb 2025 11:45:55 +0000 (06:45 -0500)
src/main/threads.c

index 2075ba12ec742b3d25974fee00a86fc8b222d857..8fbb57b816cf4d210f0fc37385446156f8539db0 100644 (file)
@@ -791,11 +791,6 @@ retry:
 
        rad_assert(*prequest != NULL);
        rad_assert(request->magic == REQUEST_MAGIC);
-       rad_assert(request->child_state == REQUEST_QUEUED);
-
-       request->component = "<core>";
-       request->module = "";
-       request->child_state = REQUEST_RUNNING;
 
        /*
         *      If the request has sat in the queue for too long,
@@ -811,6 +806,12 @@ retry:
                goto retry;
        }
 
+       rad_assert(request->child_state == REQUEST_QUEUED);
+
+       request->component = "<core>";
+       request->module = "";
+       request->child_state = REQUEST_RUNNING;
+
        /*
         *      The thread is currently processing a request.
         */