From 609ed327ebd83b34e4d7d89f1a9bd48673d77414 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Fri, 25 Apr 2008 21:54:40 +0000 Subject: [PATCH] Use consistent logic for checking to see if a call number has been chosen yet. Also, remove some redundant logic I recently added in a fix. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@114673 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_iax2.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index d44163e226..a949a1c50c 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -1345,7 +1345,7 @@ static int __find_callno(unsigned short callno, unsigned short dcallno, struct s if (new <= NEW_ALLOW) { /* Look for an existing connection first */ - for (x=1;(res < 1) && (x= NEW_ALLOW)) { + if (!res && (new >= NEW_ALLOW)) { int start, found = 0; /* It may seem odd that we look through the peer list for a name for -- 2.47.3