]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Sanity check for unlang_signal
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 30 Jan 2018 00:23:12 +0000 (17:23 -0700)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 30 Jan 2018 00:35:36 +0000 (17:35 -0700)
src/main/unlang_interpret.c

index 65d2e50a66d5198f5c2df3891480307518998976..1a9fc61df5dfd23d5c611bd8fead89ffaf3fe259 100644 (file)
@@ -1123,6 +1123,8 @@ void unlang_signal(REQUEST *request, fr_state_signal_t action)
        unlang_resume_t         *mr;
        int                     i;
 
+       (void)talloc_get_type_abort(request, REQUEST);  /* Check the request hasn't already been freed */
+
        rad_assert(stack->depth > 0);
 
        /*