From: Joshua Colp Date: Thu, 28 Sep 2006 17:31:09 +0000 (+0000) Subject: Make sure the pvt exists before accessing it again as it may have gone away (issue... X-Git-Tag: 1.4.0-beta3~136 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=24b723af44be918d39867bc34cbcf2dde11fb3b5;p=thirdparty%2Fasterisk.git 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/branches/1.4@43915 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index fa32a05a4b..9aceac5a7b 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -7579,7 +7579,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)