From: Alan T. DeKok Date: Fri, 22 Jul 2022 14:43:23 +0000 (-0400) Subject: move reset of indent to "stop" function X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b43436ecd2d4e5f00ad8228f9ad8f07a5c5b5b0c;p=thirdparty%2Ffreeradius-server.git move reset of indent to "stop" function which is arguably where it belongs. --- diff --git a/src/lib/unlang/interpret.c b/src/lib/unlang/interpret.c index cab66687d94..67587795549 100644 --- a/src/lib/unlang/interpret.c +++ b/src/lib/unlang/interpret.c @@ -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;