dect
/
asterisk
Archived
13
0
Fork 0

Merged revisions 114608 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114608 | russell | 2008-04-24 10:55:21 -0500 (Thu, 24 Apr 2008) | 4 lines

Fix a silly mistake in a change I made yesterday that caused chan_iax2 to blow
up very quickly.
(issue #12515)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114609 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
russell 2008-04-24 15:56:55 +00:00
parent d4d2a4daa1
commit 0ed303be13
1 changed files with 2 additions and 2 deletions

View File

@ -1507,7 +1507,7 @@ static int __find_callno(unsigned short callno, unsigned short dcallno, struct s
res = x;
}
}
if (res && !return_locked)
if (!res || (res && !return_locked))
ast_mutex_unlock(&iaxsl[x]);
}
for (x=TRUNK_CALL_START;(res < 1) && (x<maxtrunkcall);x++) {
@ -1518,7 +1518,7 @@ static int __find_callno(unsigned short callno, unsigned short dcallno, struct s
res = x;
}
}
if (res && !return_locked)
if (!res || (res && !return_locked))
ast_mutex_unlock(&iaxsl[x]);
}
}