]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
stack is void
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 14 Dec 2019 12:34:03 +0000 (19:34 +0700)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 14 Dec 2019 12:34:03 +0000 (19:34 +0700)
src/lib/unlang/interpret.c

index 9282fcb4a7aa23aae942fdc214a5ee68c4bac313..652d765c2f5502dc59ab6b76bda5d65fb1b7b5f9 100644 (file)
@@ -1060,6 +1060,8 @@ static void frame_signal(REQUEST *request, fr_state_signal_t action, int limit)
  */
 void unlang_interpret_signal(REQUEST *request, fr_state_signal_t action)
 {
+       unlang_stack_t          *stack = request->stack;
+
        /*
         *      If we're stopping, then mark the request as stopped.
         *      Then, call the frame signal handler.  The keyword will
@@ -1075,7 +1077,7 @@ void unlang_interpret_signal(REQUEST *request, fr_state_signal_t action)
         *      yet should have a stack depth of zero, so we don't
         *      need to do anything.
         */
-       if (request->stack->depth > 0) frame_signal(request, action, 0);
+       if (stack && (stack->depth > 0)) frame_signal(request, action, 0);
 }
 
 /** Return the depth of the request's stack