aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;