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/branches/1.4@49568 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp
2007-01-04 23:00:50 +00:00
parent 46d91e71c5
commit 62b8b03294

View File

@@ -7023,6 +7023,7 @@ retryowner2:
}
}
}
if (iaxs[fr->callno]) {
ast_mutex_lock(&dpcache_lock);
dp = iaxs[fr->callno]->dpentries;
while(dp) {
@@ -7032,6 +7033,7 @@ retryowner2:
dp = dp->peer;
}
ast_mutex_unlock(&dpcache_lock);
}
break;
case IAX_COMMAND_POKE:
/* Send back a pong packet with the original timestamp */