From: Arran Cudbard-Bell Date: Sat, 14 Dec 2019 12:34:03 +0000 (+0700) Subject: stack is void X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b36ebdc29ff13830ec732a15f95257256ef1f7d;p=thirdparty%2Ffreeradius-server.git stack is void --- diff --git a/src/lib/unlang/interpret.c b/src/lib/unlang/interpret.c index 9282fcb4a7a..652d765c2f5 100644 --- a/src/lib/unlang/interpret.c +++ b/src/lib/unlang/interpret.c @@ -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