From: Arran Cudbard-Bell Date: Sat, 14 Dec 2019 12:21:02 +0000 (+0700) Subject: Fix assert when trying to cancel new requests X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87c8efa28edbcf66a72f9fcdabe12e0e2f85b79e;p=thirdparty%2Ffreeradius-server.git Fix assert when trying to cancel new requests --- diff --git a/src/lib/unlang/interpret.c b/src/lib/unlang/interpret.c index 6318f9b27eb..9282fcb4a7a 100644 --- a/src/lib/unlang/interpret.c +++ b/src/lib/unlang/interpret.c @@ -1070,7 +1070,12 @@ void unlang_interpret_signal(REQUEST *request, fr_state_signal_t action) request->master_state = REQUEST_STOP_PROCESSING; } - frame_signal(request, action, 0); + /* + * Requests that haven't been run through the interpreter + * 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); } /** Return the depth of the request's stack