Skip to content

Commit

Permalink
media_exchange: make sure we do not unreference NULL dlg
Browse files Browse the repository at this point in the history
(cherry picked from commit 581a4b8)
  • Loading branch information
razvancrainea committed Sep 8, 2022
1 parent e2b66bc commit 1ddc675
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/media_exchange/media_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,8 @@ void media_exchange_event_received(enum b2b_entity_type et, str *key,
break;
}

media_dlg.dlg_unref(dlg, 1);
if (dlg)
media_dlg.dlg_unref(dlg, 1);
return;
}

Expand Down

0 comments on commit 1ddc675

Please sign in to comment.