Skip to content

Commit

Permalink
Sanity check for unlang_signal
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Jan 30, 2018
1 parent cc186aa commit a8ccfcb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/unlang_interpret.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/*
Expand Down

0 comments on commit a8ccfcb

Please sign in to comment.