[Asterisk-cvs] asterisk channel.c,1.217,1.218

kpfleming at lists.digium.com kpfleming at lists.digium.com
Tue Jul 12 11:52:13 CDT 2005


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv17441

Modified Files:
	channel.c 
Log Message:
fix logic error in searching for channel by name (bug #4684)


Index: channel.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channel.c,v
retrieving revision 1.217
retrieving revision 1.218
diff -u -d -r1.217 -r1.218
--- channel.c	12 Jul 2005 15:13:39 -0000	1.217
+++ channel.c	12 Jul 2005 16:00:23 -0000	1.218
@@ -678,8 +678,12 @@
 				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;




More information about the svn-commits mailing list