[asterisk-commits] jpeeler: branch 1.6.1 r222396 - /branches/1.6.1/channels/chan_dahdi.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Oct 6 17:30:15 CDT 2009
Author: jpeeler
Date: Tue Oct 6 17:30:11 2009
New Revision: 222396
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=222396
Log:
Fix potential crash when entire span request is received.
The variable index used in this scenario for accessing the dahdi_pvts was
wrong and was most likely copied from the several other places it is used
correctly.
(closes issue #15998)
Reported by: tsearle
Patches:
dahdi_reset_crash.patch uploaded by tsearle (license 373)
Modified:
branches/1.4/channels/chan_dahdi.c
Modified:
branches/1.6.1/channels/chan_dahdi.c
Modified: branches/1.6.1/channels/chan_dahdi.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.1/channels/chan_dahdi.c?view=diff&rev=222396&r1=222395&r2=222396
==============================================================================
--- branches/1.6.1/channels/chan_dahdi.c (original)
+++ branches/1.6.1/channels/chan_dahdi.c Tue Oct 6 17:30:11 2009
@@ -11178,8 +11178,8 @@
pri_destroycall(pri->pri, pri->pvts[x]->call);
pri->pvts[x]->call = NULL;
}
- if (pri->pvts[chanpos]->realcall)
- pri_hangup_all(pri->pvts[chanpos]->realcall, pri);
+ if (pri->pvts[x]->realcall)
+ pri_hangup_all(pri->pvts[x]->realcall, pri);
else if (pri->pvts[x]->owner)
pri->pvts[x]->owner->_softhangup |= AST_SOFTHANGUP_DEV;
ast_mutex_unlock(&pri->pvts[x]->lock);
More information about the asterisk-commits
mailing list