Skip to content

Commit

Permalink
Add asserts around connection state
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Feb 20, 2020
1 parent 13d4cb0 commit 1ae7a42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/server/trunk.c
Expand Up @@ -2697,6 +2697,9 @@ static void _trunk_connection_on_halted(UNUSED fr_connection_t *conn, UNUSED fr_
*/
static int _trunk_connection_free(fr_trunk_connection_t *tconn)
{
rad_assert(tconn->state == FR_CONNECTION_STATE_HALTED);
rad_assert(!fr_dlist_entry_in_list(&tconn->entry)); /* Should not be in a list */

/*
* Loop over all the requests we gathered
* and transition them to the failed state,
Expand Down

0 comments on commit 1ae7a42

Please sign in to comment.