Fix IAX2 out of memory failure (bug #3907)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5323 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2-netsec
Mark Spencer 21 years ago
parent 1e477ed10f
commit 6ea8bf36f8

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

Loading…
Cancel
Save