]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Frames always have an instruction
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 1 Jun 2025 20:25:34 +0000 (14:25 -0600)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 18 Jun 2025 12:53:14 +0000 (13:53 +0100)
src/lib/unlang/interpret.c

index 6d9310ba7660d24438dd181704c9991ab882a9bd..6cafc185c81aefec9125549c3386c402460f9678 100644 (file)
@@ -162,7 +162,7 @@ static void frame_dump(request_t *request, unlang_stack_frame_t *frame)
 {
        unlang_op_t     *op = NULL;
 
-       if (frame->instruction) op = &unlang_ops[frame->instruction->type];
+       op = &unlang_ops[frame->instruction->type];
 
        instruction_dump(request, frame->instruction);
 
@@ -197,13 +197,12 @@ static void frame_dump(request_t *request, unlang_stack_frame_t *frame)
        RDEBUG2("yielded        %s", is_yielded(frame) ? "yes" : "no");
        RDEBUG2("unwind         %s", is_unwinding(frame) ? "yes" : "no");
 
-       if (frame->instruction) {
-               RDEBUG2("control        %s%s%s",
-                       is_break_point(frame) ? "b" : "-",
-                       is_return_point(frame) ? "r" : "-",
-                       is_continue_point(frame) ? "c" : "-"
-                       );
-       }
+       RDEBUG2("control        %s%s%s",
+               is_break_point(frame) ? "b" : "-",
+               is_return_point(frame) ? "r" : "-",
+               is_continue_point(frame) ? "c" : "-"
+               );
+
        /*
         *      Call the custom frame dump function
         */