Merged revisions 49568 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Thu, 4 Jan 2007 23:02:32 +0000 (23:02 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 4 Jan 2007 23:02:32 +0000 (23:02 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49568 | file | 2007-01-04 18:00:50 -0500 (Thu, 04 Jan 2007) | 2 lines

It's possible for the iax2 pvt to disappear, so if it has... don't bother looking for dpentries.

........

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

channels/chan_iax2.c

index aa55ead..4d6a497 100644 (file)
@@ -7122,11 +7122,13 @@ retryowner2:
                                                }
                                        }
                                }
-                               AST_LIST_LOCK(&dpcache);
-                               AST_LIST_TRAVERSE(&iaxs[fr->callno]->dpentries, dp, peer_list)
-                                       if (!(dp->flags & CACHE_FLAG_TRANSMITTED))
-                                               iax2_dprequest(dp, fr->callno);
-                               AST_LIST_UNLOCK(&dpcache);
+                               if (iaxs[fr->callno]) {
+                                       AST_LIST_LOCK(&dpcache);
+                                       AST_LIST_TRAVERSE(&iaxs[fr->callno]->dpentries, dp, peer_list)
+                                               if (!(dp->flags & CACHE_FLAG_TRANSMITTED))
+                                                       iax2_dprequest(dp, fr->callno);
+                                       AST_LIST_UNLOCK(&dpcache);
+                               }
                                break;
                        case IAX_COMMAND_POKE:
                                /* Send back a pong packet with the original timestamp */