]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Bail early if there's no stack
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 5 May 2025 22:29:14 +0000 (16:29 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 6 May 2025 17:56:01 +0000 (11:56 -0600)
src/lib/unlang/interpret.c

index 54996684299b1bd1532ff108778c1886f478bbdb..cbf5b602dc017bcaec3a28025bf65365c666b46a 100644 (file)
@@ -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: