From: Arran Cudbard-Bell Date: Mon, 5 May 2025 22:29:14 +0000 (-0600) Subject: Bail early if there's no stack X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df49ac3e8961602d2ce4be2b8ed72d2d1cbd4abb;p=thirdparty%2Ffreeradius-server.git Bail early if there's no stack --- diff --git a/src/lib/unlang/interpret.c b/src/lib/unlang/interpret.c index 54996684299..cbf5b602dc0 100644 --- a/src/lib/unlang/interpret.c +++ b/src/lib/unlang/interpret.c @@ -1131,7 +1131,9 @@ void unlang_interpret_signal(request_t *request, fr_signal_t action) * yet should have a stack depth of zero, so we don't * need to do anything. */ - if (stack && (stack->depth > 0)) unlang_stack_signal(request, action, 1); + if (!stack || stack->depth == 0) return; + + unlang_stack_signal(request, action, 1); switch (action) { case FR_SIGNAL_CANCEL: