From: Kevin P. Fleming Date: Tue, 12 Jul 2005 16:00:23 +0000 (+0000) Subject: fix logic error in searching for channel by name (bug #4684) X-Git-Tag: 1.2.0-beta1~294 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4bcf6f7806cb8f35f03ae43e45fb0f46a9e228db;p=thirdparty%2Fasterisk.git fix logic error in searching for channel by name (bug #4684) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6110 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channel.c b/channel.c index ef14f73e5b..2bfe485e22 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;