]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
signal the request to cancel, too
authorAlan T. DeKok <aland@freeradius.org>
Tue, 18 Oct 2022 14:10:48 +0000 (10:10 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 21 Oct 2022 18:53:16 +0000 (14:53 -0400)
src/lib/unlang/interpret.c

index 1309194e0c5dac539c65d0a627426b3840647df7..465586394971c48b79b84f143665e24eea8f4fe2 100644 (file)
@@ -465,8 +465,10 @@ unlang_frame_action_t frame_eval(request_t *request, unlang_stack_frame_t *frame
                        request->ins_count++;
 
                        if (request->ins_count >= request->ins_max) {
-                               request->master_state = REQUEST_STOP_PROCESSING;
                                RERROR("Failing request due to maximum instruction count %" PRIu64, request->ins_max);
+
+                               unlang_interpret_signal(request, FR_SIGNAL_CANCEL);
+                               request->master_state = REQUEST_STOP_PROCESSING;
                        }
                }
 #endif