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.

darcs-hash:20061208080532-65a35-e67f97abb169bd359a1df44f4caa56b639114083.gz
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