[asterisk-commits] bbryant: branch 1.4 r131491 - /branches/1.4/channels/chan_iax2.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 16 17:17:07 CDT 2008


Author: bbryant
Date: Wed Jul 16 17:17:07 2008
New Revision: 131491

URL: http://svn.digium.com/view/asterisk?view=rev&rev=131491
Log:
Fix a bug in iax2 registration that allowed peers to register with 
case-insensitive names (user_cmp_cb and peer_cmp_cb are now both 
case-sensitive).

(closes issue #13091)

Modified:
    branches/1.4/channels/chan_iax2.c

Modified: branches/1.4/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_iax2.c?view=diff&rev=131491&r1=131490&r2=131491
==============================================================================
--- branches/1.4/channels/chan_iax2.c (original)
+++ branches/1.4/channels/chan_iax2.c Wed Jul 16 17:17:07 2008
@@ -1119,7 +1119,7 @@
 {
 	struct iax2_peer *peer = obj, *peer2 = arg;
 
-	return !strcasecmp(peer->name, peer2->name) ? CMP_MATCH : 0;
+	return !strcmp(peer->name, peer2->name) ? CMP_MATCH : 0;
 }
 
 /*!
@@ -1139,7 +1139,7 @@
 {
 	struct iax2_user *user = obj, *user2 = arg;
 
-	return !strcasecmp(user->name, user2->name) ? CMP_MATCH : 0;
+	return !strcmp(user->name, user2->name) ? CMP_MATCH : 0;
 }
 
 /*!




More information about the asterisk-commits mailing list