[asterisk-commits] file: branch 1.4 r43915 - /branches/1.4/channels/chan_iax2.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Sep 28 10:31:10 MST 2006


Author: file
Date: Thu Sep 28 12:31:09 2006
New Revision: 43915

URL: http://svn.digium.com/view/asterisk?rev=43915&view=rev
Log:
Make sure the pvt exists before accessing it again as it may have gone away (issue #7562 reported by Seb7 and issue #7939 reported by sorg)

Modified:
    branches/1.4/channels/chan_iax2.c

Modified: branches/1.4/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_iax2.c?rev=43915&r1=43914&r2=43915&view=diff
==============================================================================
--- branches/1.4/channels/chan_iax2.c (original)
+++ branches/1.4/channels/chan_iax2.c Thu Sep 28 12:31:09 2006
@@ -7579,7 +7579,7 @@
 	if (duped_fr) {
 		schedule_delivery(duped_fr, updatehistory, 0, &fr->ts);
 	}
-	if (iaxs[fr->callno]->last < fr->ts) {
+	if (iaxs[fr->callno] && iaxs[fr->callno]->last < fr->ts) {
 		iaxs[fr->callno]->last = fr->ts;
 #if 1
 		if (option_debug && iaxdebug)



More information about the asterisk-commits mailing list