mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 11:58:40 +00:00
Fix IAX2 out of memory failure (bug #3907)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5323 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1054,7 +1054,7 @@ static int find_callno(unsigned short callno, unsigned short dcallno, struct soc
|
||||
/* We've still got lock held if we found a spot */
|
||||
if (x >= TRUNK_CALL_START) {
|
||||
ast_log(LOG_WARNING, "No more space\n");
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
iaxs[x] = new_iax(sin, lockpeer, host);
|
||||
update_max_nontrunk();
|
||||
|
||||
Reference in New Issue
Block a user