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:
Mark Spencer
2005-03-31 19:29:54 +00:00
parent 1e477ed10f
commit 6ea8bf36f8

View File

@@ -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();