Commit 1f8f8000 authored by Pekka Pessi's avatar Pekka Pessi

nua_session.c: fixed possible segfault in signal_call_state_change()

Thanks for Michael Jerris for reporting the problem.

parent 235745bb
......@@ -3468,7 +3468,7 @@ static void signal_call_state_change(nua_handle_t *nh,
ss->ss_state = nua_callstate_init, next_state = nua_callstate_terminated;
if (ss->ss_state == nua_callstate_ready)
if (ss && ss->ss_state == nua_callstate_ready)
nh->nh_active_call = 1;
else if (next_state == nua_callstate_terminated)
nh->nh_active_call = 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment