Skip to content

Commit

Permalink
trunk: Prevent assert when req_cleanup_delay == 0
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Mar 2, 2020
1 parent 8eb3ca7 commit 5d6c1df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/server/trunk.c
Expand Up @@ -1760,6 +1760,7 @@ void fr_trunk_request_free(fr_trunk_request_t *treq)
* No cleanup delay, means cleanup immediately
*/
if (trunk->conf.req_cleanup_delay == 0) {
treq->state = FR_TRUNK_REQUEST_STATE_UNASSIGNED;
talloc_free(treq);
return;
}
Expand Down

0 comments on commit 5d6c1df

Please sign in to comment.