Commit 924ae51a authored by Pekka Pessi's avatar Pekka Pessi
Browse files

Fixed race condition in 302 test.

darcs-hash:20051017144945-65a35-63c0fd48c471feb7eb622267856356510f9c166d.gz
parent 33287497
...@@ -1231,12 +1231,12 @@ CONDITION_FUNCTION(reject_3) ...@@ -1231,12 +1231,12 @@ CONDITION_FUNCTION(reject_3)
m->m_url->url_user = "302"; m->m_url->url_user = "302";
respond(ep, nh, SIP_302_MOVED_TEMPORARILY, respond(ep, nh, SIP_302_MOVED_TEMPORARILY,
SIPTAG_CONTACT(m), TAG_END()); SIPTAG_CONTACT(m), TAG_END());
ep->next_condition = reject_4;
} }
return 0; return 0;
case nua_callstate_terminated: case nua_callstate_terminated:
nua_handle_destroy(ep->nh), ep->nh = NULL; nua_handle_destroy(ep->nh), ep->nh = NULL;
return 1; ep->next_condition = reject_4;
return 0;
default: default:
return 0; return 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