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)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@131491 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Brett Bryant
2008-07-16 22:17:07 +00:00
parent b0586bd055
commit 8a427aed77

View File

@@ -1119,7 +1119,7 @@ static int peer_cmp_cb(void *obj, void *arg, int flags)
{
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 @@ static int user_cmp_cb(void *obj, void *arg, int flags)
{
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;
}
/*!