mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
iaxs[callno] may go away if we try to avoid the deadlock
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44760 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1710,11 +1710,12 @@ static int iax2_predestroy(int callno)
|
||||
|
||||
static void iax2_destroy(int callno)
|
||||
{
|
||||
struct chan_iax2_pvt *pvt = iaxs[callno];
|
||||
struct chan_iax2_pvt *pvt;
|
||||
struct iax_frame *cur;
|
||||
struct ast_channel *owner;
|
||||
|
||||
retry:
|
||||
pvt = iaxs[callno];
|
||||
gettimeofday(&lastused[callno], NULL);
|
||||
|
||||
owner = pvt ? pvt->owner : NULL;
|
||||
|
Reference in New Issue
Block a user