Merged revisions 87686 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Tue, 30 Oct 2007 21:22:48 +0000 (21:22 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 30 Oct 2007 21:22:48 +0000 (21:22 +0000)
commit3978cb6f1c42af28d40fe13137ecbb091cbf4078
treec49084c4d7107806e98de1e77c4b184a71a8a1ad
parent9b207275fabb857a8ccf0337d13cc8e9b42a42a7
Merged revisions 87686 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r87686 | russell | 2007-10-30 16:19:09 -0500 (Tue, 30 Oct 2007) | 11 lines

Merge the changes from team/russell/iax2_poke_fix and iax2-poke-fix-trunk

There was a race condition related to the handling of POKEing peers.  Essentially,
a reference to a peer is held by the scheduler when there are pending callbacks,
but the reference count didn't reflect it.  So, it was possible for a peer to hit
a reference count of zero and have its destructor begin to be called at the same
time that the scheduler thread ran a POKE related callback.  If that happened,
a crash would likely occur.

(closes issue #11082, closes issue #11094)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@87687 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_iax2.c