]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
set STOP_PROCESSING on stop
authorAlan T. DeKok <aland@freeradius.org>
Tue, 13 Dec 2022 12:59:14 +0000 (07:59 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 13 Dec 2022 12:59:34 +0000 (07:59 -0500)
cancel used to do this, but no longer

src/lib/io/worker.c

index 0562b821c042d7482b19c94c16b2e9f1f4603902..cf48a7b40171efa64fea2b7c8236a2621bd267c6 100644 (file)
@@ -381,6 +381,12 @@ static void worker_stop_request(request_t **request_p)
         *      the internal/external callbacs.
         */
        unlang_interpret_signal(*request_p, FR_SIGNAL_CANCEL);
+
+       /*
+        *      Cancel just signals each frame.  We need to tell
+        *      everything else that this request is dead.
+        */
+       (*request_p)->master_state == REQUEST_STOP_PROCESSING'
        *request_p = NULL;
 }