aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-12 16:00:23 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-12 16:00:23 +0000
commit7291c2c739cca0e2f428f055913280ed2e6d5051 (patch)
tree0f3cc3c2e15c3dce7a6a853fcb4643a183cfe628 /channel.c
parent96afbd28904b34203a3cff3fa22bda883b950b10 (diff)
fix logic error in searching for channel by name (bug #4684)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6110 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/channel.c b/channel.c
index ef14f73e5..2bfe485e2 100755
--- a/channel.c
+++ b/channel.c
@@ -678,8 +678,12 @@ static struct ast_channel *channel_find_locked(const struct ast_channel *prev,
if (!name)
break;
/* want match by full name */
- if (!namelen && !strcasecmp(c->name, name))
- break;
+ if (!namelen) {
+ if (!strcasecmp(c->name, name))
+ break;
+ else
+ continue;
+ }
/* want match by name prefix */
if (!strncasecmp(c->name, name, namelen))
break;