Merged revisions 58923 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Thu, 15 Mar 2007 18:21:03 +0000 (18:21 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 15 Mar 2007 18:21:03 +0000 (18:21 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r58923 | file | 2007-03-15 15:13:21 -0300 (Thu, 15 Mar 2007) | 2 lines

Don't assume that the pvt structure will still exist after calling schedule_delivery as it may not. (issue #9278 reported by fmachado)

........

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

channels/chan_iax2.c

index 97a7559..c855e96 100644 (file)
@@ -6500,7 +6500,7 @@ static int socket_process_meta(int packet_len, struct ast_iax2_meta_hdr *meta, s
                                        duped_fr = iaxfrdup2(fr);
                                        if (duped_fr)
                                                schedule_delivery(duped_fr, 1, 1, &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;
                                }
                        } else {