Merged revisions 150635 via svnmerge from

https://origsvn.digium.com/svn/asterisk/trunk

........
  r150635 | tilghman | 2008-10-17 12:09:03 -0500 (Fri, 17 Oct 2008) | 2 lines
  
  Make helper call a little safer (suggested by Russell on IRC)
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@150636 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher
2008-10-17 17:10:02 +00:00
parent 2f69e7a63c
commit 7c7a915e95

View File

@@ -2312,8 +2312,9 @@ static void iax2_destroy(int callno)
struct ast_channel *owner = NULL;
retry:
pvt = iaxs[callno];
iax2_destroy_helper(pvt);
if ((pvt = iaxs[callno])) {
iax2_destroy_helper(pvt);
}
lastused[callno] = ast_tvnow();