Skip to content

Commit

Permalink
Prevent nua from crashing on broken handles linked list when an event…
Browse files Browse the repository at this point in the history
… is queued after nua_handle_destroy()
  • Loading branch information
andywolk committed Aug 4, 2021
1 parent fbab3b7 commit ba4e53d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libsofia-sip-ua/nua/nua_stack.c
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ void nua_stack_signal(nua_t *nua, su_msg_r msg, nua_ee_data_t *ee)
nua_event_t event = (enum nua_event_e)e->e_event;
int error = 0;

if (nh && event != nua_r_handle_unref) {
if (nh && !nh->nh_destroyed && event != nua_r_handle_unref) {
if (!nh->nh_prev)
nh_append(nua, nh);
if (!nh->nh_ref_by_stack) {
Expand Down

0 comments on commit ba4e53d

Please sign in to comment.