aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_iax2.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-04 23:02:32 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-04 23:02:32 +0000
commitae60d026a05a6b63a9544d9bc545533a167c00c9 (patch)
tree8276f8d3a54e2db808aca6f57ce0ef259e678795 /channels/chan_iax2.c
parent01dbc383ec974206268c918570669fe0a83b9630 (diff)
Merged revisions 49568 via svnmerge from
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: http://svn.digium.com/svn/asterisk/trunk@49573 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_iax2.c')
-rw-r--r--channels/chan_iax2.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index aa55ead00..4d6a4970f 100644
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -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 */