Merged revisions 43915 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Thu, 28 Sep 2006 17:32:46 +0000 (17:32 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 28 Sep 2006 17:32:46 +0000 (17:32 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r43915 | file | 2006-09-28 13:31:09 -0400 (Thu, 28 Sep 2006) | 2 lines

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)

........

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

channels/chan_iax2.c

index a7b89ed..74e55b0 100644 (file)
@@ -7526,7 +7526,7 @@ retryowner2:
        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)