Skip to content

Commit

Permalink
rtpengine: check for empty list before processing timer job
Browse files Browse the repository at this point in the history
  • Loading branch information
john08burke committed Aug 12, 2021
1 parent b3dd7c5 commit dc4a2b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/rtpengine/rtpengine.c
Expand Up @@ -1211,6 +1211,9 @@ void rtpengine_timer(unsigned int ticks, void *param)
struct rtpe_set *rtpe_list;
struct rtpe_node *crt_rtpe;

if (*rtpe_set_list == NULL)
return;

RTPE_START_READ();
for(rtpe_list = (*rtpe_set_list)->rset_first; rtpe_list != NULL;
rtpe_list = rtpe_list->rset_next){
Expand Down

0 comments on commit dc4a2b9

Please sign in to comment.