diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-07-12 16:00:23 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-07-12 16:00:23 +0000 |
commit | 7291c2c739cca0e2f428f055913280ed2e6d5051 (patch) | |
tree | 0f3cc3c2e15c3dce7a6a853fcb4643a183cfe628 /channel.c | |
parent | 96afbd28904b34203a3cff3fa22bda883b950b10 (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-x | channel.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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; |