]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
move reset of indent to "stop" function
authorAlan T. DeKok <aland@freeradius.org>
Fri, 22 Jul 2022 14:43:23 +0000 (10:43 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 23 Jul 2022 23:47:19 +0000 (19:47 -0400)
which is arguably where it belongs.

src/lib/unlang/interpret.c

index cab66687d945bd8322173df1094d3ccc0adf250d..6758779554950e9a61a4292f6def6145a6780643 100644 (file)
@@ -974,6 +974,7 @@ void unlang_interpret_request_stop(request_t *request)
 
        intp = stack->intp;
        intp->funcs.stop(request, intp->uctx);
+       request->log.unlang_indent = 0;                 /* nothing unwinds the indentation stack */
 }
 
 static inline CC_HINT(always_inline)
@@ -1084,7 +1085,6 @@ void unlang_interpret_signal(request_t *request, fr_state_signal_t action)
        switch (action) {
        case FR_SIGNAL_CANCEL:
                unlang_interpret_request_stop(request);         /* Stop gets the request in a consistent state */
-               request->log.unlang_indent = 0;                 /* nothing unwinds the indentation stack */
                unlang_interpret_request_done(request);         /* Done signals the request is complete */
                break;